Specify a base

This guide describes how to declare, upgrade, and downgrade the base of a snap.

How to use a base

The base a snap will use is defined in the snap’s project file.

To use the core26 base for a snap:

snapcraft.yaml
base: core26

How to migrate to a higher base

See Change bases for details on migrating to a higher base.

How to use a deprecated base

The latest release of Snapcraft does not support older bases. Prior major Snapcraft releases are supported and can be installed from their respective tracks.

See base snaps for a list of which Snapcraft major releases support a particular base.

The Support schedule details the support timeline of each base.

core18

To build core18 snaps, install snapcraft 7 from the 7.x track:

snap install snapcraft --channel 7.x

core