Snap
Jump to navigation
Jump to search
Snap[1] is a software deployment and package management for Linux available at least since 2015 [2] with support for channels[3] and parallel installs [4].
Snaps are basically an application compiled together with its dependencies and libraries – providing a sandboxed environment for the application to run. These are easier and faster to install, can receive latest updates and is confined from the OS and other apps.
Contents
Basic operations[edit]
- Installation:
sudo apt install snapd[5] - Install your first application:
snap install hello
- Remove an application:
snap remove hello-world - Search for your application:
snap find SNAP_TO_SEARCH- Search for Canonical’s snaps:
snap find Canonical
- List installed snaps:
snap changes- Show Info:
snap info SNAP_NAME
- Update your snaps:
sudo snap refresh snap set. For example:snap set rocketchat-server port=4000snap getsnap switchsnap services
Directories[edit]
Snapshots and Roll Back[edit]
Channels[edit]
- Change channel:
sudo snap refresh hello --channel=beta snap info PACKAGE(To show channels)
Adoption[edit]
Snaps were introduced in Ubuntu 16.04 LTS.
Activities[edit]
- Read snap source code: https://github.com/snapcore/snapd
- Enable snaps in Fedora:
sudo dnf install snapdandsudo systemctl enable --now snapd.socket sudo systemctl restart snapd.service
Related[edit]
snap startSquashfsfind /snap/<snapname>/current//snap/bin/- Flatpak
- systemctl stop snapd
- geth --syncmode snap
- Brew
See also[edit]
- Snap:
snap,snapd,snapctl,snapcraft,snap: [list|install|find|info|services|start|stop|remove|refresh | set|logs]snapd|snap list | snap version|snap find aws|snap --help] - Package managers: dpkg, APT, RPM, YUM, DNF, homebrew, pkgutil, opkg, Helm, pkg and snap, npm, Aptitude, alien, Conan, CRAN, Chocolatey, NuGet, PackageKit, Wajig, pacman, PIP, PDM, Apache Ivy, List packages, List files in packages, Spack, Python
Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.
Original Source: https://en.wikiversity.org/wiki/Snap
Advertising: