Packages and services

Command snap

Manage snap packages

Linux · Bash examples · commands run on the selected server

When to use snap

Use snap to inspect installed snaps, available channels and recorded background changes. A snap package has a lifecycle and confinement model that differs from a traditional distribution package.

Syntax

snap [PARAMETERS] ACTION [PACKAGE...]

Square brackets mark optional arguments; an ellipsis means repetition. Replace example file names, user names and server addresses with your own values.

Common options and arguments

list
Show installed snap packages.
info
Description, channels and package details.
changes
Show transaction history snapd.

Usage examples

View installed packages

snap list

Installed snaps and their versions are listed.

Check package details

snap info hello-world

Publisher, channels and package information are displayed without installation.

View changes

snap changes

Recorded operations are listed to help identify an in-progress or failed change.

Notes and limitations

  • You need the snapd service installed and running; snap is not available on all distributions.
  • Please check the publisher, channel and requested isolation mode before installing, especially --classic.

Common questions and troubleshooting

Why can snap commands fail on a minimal server?

The snap client, daemon or required system integration may be absent or unavailable. Confirm support on the chosen distribution.

How do I investigate a stuck change?

Inspect the recorded change and its task details before intervening. Avoid repeatedly starting the same install while an existing operation is active.

Further help

Options vary by version and distribution. Check the installed documentation with this command: man snap.