Minecraft wiki entry for Skin, associated text: through the Marketplace. Most of them cost Minecoins (Tokens on PS4), but some have been released for free.
through .mcskin files put in the skin_packs or development_skin_packs folder in the game files (accessible only on Windows 10, Android, iOS, iPadOS, and Fire devices).