For a general overview of what Snapcraft is capable of, and how to build your first snap, take a look at our Quickstart guide, and see below for installation instructions:
Install snapcraft on Linux
On Linux distributions with snap support, the easiest way to install snapcraft is via its snap:
$ sudo snap install snapcraft --classic
--classic argument is required because snapcraft uses classic confinement.
ⓘ If you’re using an apt installed version of snapcraft, such as the package for Ubuntu 18.04 LTS, you need to remove this (
sudo apt remove snapcraft) and install snapcraft from its snap to access the latest features.
Install snapcraft on macOS
Snapcraft can also be installed and run on Apple’s macOS. See Install snapcraft on macOS for details.
On Apple macOS Yosemite (or later), Snapcraft can be installed via Homebrew and used to build snaps within the macOS environment.
- Make sure you have the Homebrew package manager installed
- Download and run the Multipass installer to install Multipass
To install snapcraft, open 'Terminal` and enter the following:
$ brew install snapcraft
When the process completes, the snapcraft command will be installed and ready to go. See Snapcraft overview for help getting started.