Snappy (package manager)
|Initial release||9 December 2014|
2.37.2 / 14 February 2019
|Written in||Go, C (programming language)|
Snappy is a software deployment and package management system originally designed and built by Canonical for the Ubuntu phone operating system. The packages, called snaps and the tool for using them, snapd, work across a range of Linux distributions allowing distro-agnostic upstream software packaging. The system is designed to work for internet of things, cloud and desktop computing.
Snap application packages of software are self-contained and work across a range of Linux distributions. This is unlike traditional Linux package management approaches, like APT or YUM, which require specifically adapted packages for each Linux distribution therefore adding delay between application development and its deployment for end-users.
Snaps themselves have no dependency on any "app store", can be obtained from any source and can be therefore used for upstream software deployment. When snaps are deployed on Ubuntu and other versions of Linux, the Ubuntu app store is used as default back-end, but other stores can be enabled as well.
Developers can use snaps to create command line tools and background services as well as desktop applications. With snap application, upgrades via atomic operation or by deltas are possible.
In June 2016, snapd was ported to a wide range of Linux distributions to enable snaps to be used across any Linux distribution, not just the all-snap Ubuntu Core. snapd is also available or in progress for Arch Linux, CentOS, Debian, Fedora, Gentoo Linux, Solus, Manjaro Linux, Linux Mint, OpenEmbedded, Raspbian, OpenWrt and openSUSE.
Each distribution is able to interpret the snap metadata to implement the security or other expectations of the snap in a distribution-specific fashion.
Snapcraft is a tool for developers to package their programs in the Snap format for Snappy.
.snap file format
The snap file format is a single compressed filesystem (based on squashfs format) that is mounted dynamically by the host operating system, together with declarative metadata that is interpreted by the snap system to set up an appropriately shaped secure sandbox or container for that application. The file format extension is .snap.
Reception and usage
Snappy packaging has been deployed in internet of things environments, ranging from consumer-facing products to enterprise device management gateways. Snappy is included by default in Ubuntu desktop images from version 16.04 onwards.
- Snap is "still mainly an Ubuntu show", criticizing the fact that snapd is no longer available in the official Arch Linux repository,
- Snap has less than satisfactory use of platform snaps, and
- Portable application creators
- Zero Install, a similar project
- ROX uses directories (AppDirs) as application bundles.
- Shuttleworth, Mark (9 December 2014). "Announcing Ubuntu Core, with snappy transactional updates!".
- Upgrading packaged Ubuntu application unreasonably involves upgrading entire OS Bug #578045 on bugs.launchpad.net/ubuntu by John King (2010-05-10)
- Linus Torvalds on the problems of distro packaging Linus Torvalds on DebConf 2014
- "Canonical unveils 6th LTS release of Ubuntu with 16.04". Ubuntu Insights. Canonical Ltd. Retrieved 22 April 2016.
- Willis, Nathan (28 January 2015). "Ubuntu Core and Snappy". Linux Weekly News. Retrieved 7 November 2015.
- Brodkin, Jon. "Adios apt and yum? Ubuntu's snap apps are coming to distros everywhere". Ars Technica. Retrieved 13 August 2016.
- Vaughan-Nichols, Stephen J. (11 May 2015). "Ubuntu jumps into Internet of Things with Acer, GE, and Microsoft". ZDNet. Retrieved 7 November 2015.
- Sherman, Jordana. "Snappy Core unlocks IoT value within the Dell Edge Gateway 5000 Series". Ubuntu Insights. Canonical Ltd. Retrieved 7 November 2015.
- "Snap support for Peek screen recorder discontinued". Reddit. March 25, 2018. Retrieved May 12, 2018.
- "Peek Gif Screen Recorder Drops Support for Snap App". OMG! Ubuntu!. Retrieved 2018-04-05.