Docu review done: Wed 31 Jul 2024 02:39:18 PM CEST
snapd
Table of Content
- General
- Installation
- Aftermath
- Search for snaps
- Offline package install
- List intsalled packges with snap
- List updates for packages
- Upgrade snap packages
- Upgrade snap packages from different channel
- Downgrade snap packages
- List changes made by snap on your system
- Remove snap package
General
Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.
Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.
Installation
$ apt install snapd
Aftermath
To use the installed binaries from snap you have to add the installation path to the variable PATH either to .profile,.bashrc,.zshr,..
$ export PATH="/snap/bin:${PATH}"
Search for snaps
Usage
$ snap find searchstring
Sample
$ snap find mdless
Name Version Publisher Notes Summary
mdless 1.0.10+snap7 arub-islander - View Markdown comfortably in the terminal
Install package
$ snap install packagename
Offline package install
Download first the assert and snap file
$ snap download packagename
Install downloaded files manually
$ snap ack packagename.assert
$ snap install packagename.snap
List intsalled packges with snap
$ snap list
Name Version Rev Tracking Publisher Notes
core18 20200427 1754 latest/stable canonical✓ base
mdless 1.0.10+snap7 146 latest/stable arub-islander -
snapd 2.44.3 7264 latest/stable canonical✓ snapd
List updates for packages
$ snap refresh --list
Upgrade snap packages
Snap packages are upgraded automatically For manual upgrade run snap refresh packagename
Usage
$ snap refresh packagename
Sample
$ snap refresh mdless
$ snap "mdless" has no updates available
Upgrade snap packages from different channel
Channel | Description |
---|---|
stable | latest stable release of package |
candidate | RC candidta for next stable version |
beta | unstable version that has reached a certain milestone |
edge | daily/nightly build of package under development |
$ snap refresh packagename --channel=channelname
Downgrade snap packages
$ snap revert packagename
List changes made by snap on your system
$ snap changes
Remove snap package
$ snap remove packagename