Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Snap (software)

From Wikipedia, the free encyclopedia
(Redirected fromSnap (package manager))
Software deployment system for Linux by Canonical
Snap
Snap / Snapcraft Logo
Developer(s)Canonical Group Limited
Repository
Written inGo,C,Shell script,Python,JavaScript, NASL[1]
Operating systemLinux
LicenseGNU GPLv3 (Client & Runtime),proprietary (Backend)[2]
Websitesnapcraft.io Edit this on Wikidata

Snap is a softwarepackaging anddeployment system developed byCanonical foroperating systems that use theLinux kernel and thesystemdinit system. The packages, calledsnaps, and the tool for using them,snapd, work across a range ofLinux distributions[3] and allowupstream software developers to distribute their applications directly to users. Snaps are self-contained applications running in a sandbox with mediated access to the host system.

Functionality

[edit]

Configurable sandbox

[edit]

Applications in a Snap run in a container with limited access to the host system. UsingInterfaces, users can give an application mediated access to additional features of the host such as recording audio, accessing USB devices and recording video.[4][5][6] These interfaces mediate regular Linux APIs so that applications can function in the sandbox without needing to be rewritten. Desktop applications can also use the XDG Desktop Portals, a standardized API originally created by theFlatpak project (originally called xdg-app) to give sandboxed desktop applications access to host resources.[7][8] These portals often provide a better user experience compared to the native Linux APIs because they prompt the user for permission to use resources such as a webcam at the time the application uses them. The downside is that applications and toolkits need to be rewritten in order to use these newer APIs.

The Snap sandbox also supports sharing data andUnix sockets between Snaps.[9] This is often used to share common libraries and application frameworks between Snaps to reduce the size of Snaps by avoiding duplication.[10][11]

The Snap sandbox heavily relies on theAppArmor Linux Security Module from the upstreamLinux kernel. Because only one "major"Linux Security Module (LSM) can be active at the same time,[12] the Snap sandbox is much less secure when another major LSM is enabled. As a result, on distributions such asFedora which enableSELinux by default, the Snap sandbox is heavily degraded. Although Canonical is working with many other developers and companies to make it possible for multiple LSMs to run at the same time, this solution is still[when?] a long time away.[13][12][14]

Automatic and atomic updates

[edit]

Multiple times a day, snapd checks for available updates of all Snaps and installs them in the background using anatomic operation. Updates can be reverted[15][16] and usedelta encoding to reduce their download size.[17][18][19]

Publishers can release and update multiple versions of their software in parallel usingchannels. Each channel has a specifictrack andrisk, which indicate theversion andstability of the software released on that channel. When installing an application, Snap defaults to using thelatest/stable channel, which will automatically update to new major releases of the software when they become available. Publishers can create additional channels to give users the possibility to stick to specific major releases of their software. For example, a2.0/stable channel would allow users to stick to the 2.0 version of the software and only get minor updates without the risk of backwards incompatible changes. When the publisher releases a new major version in a new channel, users can manually update to the next version when they choose.[20][21][22][23]

The schedule, frequency and timing of automatic updates can be configured by users. Users can also pause automatic updates for a certain period of time, or indefinitely.[24][25][26] Updates are automatically paused on metered connections.[27][28]

Snapcraft

[edit]
Snapcraft
Snapcraft Logo
Developer(s)Canonical Group Limited
Stable release
8.9.4[29] / 11 June 2025; 20 days ago (11 June 2025)
Repositorygithub.com/snapcore/snapcraft
Written inPython,Shell script,C++,Go,Dart[30]
Operating systemLinux
LicenseGNU General Public License, version 3.0
Websitesnapcraft.io Edit this on Wikidata

Snapcraft is a tool for developers to package their programs in the Snap format.[31] It runs on any Linux distribution supported by Snap,macOS[32] andMicrosoft Windows.[33] Snapcraft builds the packages in aVirtual Machine using Multipass,[34] in order to ensure the result of a build is the same, regardless of which distribution or operating system it is built on.[35] Snapcraft supports multiple build tools and programming languages, such asGo,Java,JavaScript,Python,C/C++ andRust. It also allows importing application metadata from multiple sources such asAppStream,git, shell scripts andsetup.py files.[32][36]

Snap Store

[edit]

The Snap Store allows developers to publish their snap-packaged applications.[37] All apps uploaded to the Snap Store undergo automatic testing, including amalware scan. However, the scan does not catch all issues. In one case in May 2018, two applications by the same developer were found to contain acryptocurrency miner which ran in the background during application execution. In 2024, fake cryptocurrency wallets were uploaded that would steal the user's funds, and then when taken down by Canonical, simply reuploaded by a new account.[38] Although the Snap sandbox attempts to reduce the impact of a malicious app, multiple exploits have been found that allow malicious Snaps to escape the sandbox and gain direct access to the user's data.[39][40] Canonical recommends users only install Snaps from publishers trusted by the user.[41][42]

Support

[edit]

Snaps areself-contained packages that work across a range ofLinux distributions. This is unlike traditional Linux package management approaches, which require specifically adapted packages for each Linux distribution.[43][44]

The commandsnap list here shows thatSkype andIntelliJ IDEA have been installed

The snapfile format is a single compressedfilesystem using theSquashFS format with the extension.snap. This filesystem contains the application, libraries it depends on, and declarative metadata. This metadata is interpreted by snapd to set up an appropriately shaped securesandbox for that application. After installation, the snap is mounted by the host operating system and decompressed on the fly when the files are used.[45][23] Although this has the advantage that snaps use less disk space, it also means some large applications start more slowly.[46][47]

Snap supports any class of Linux application such as desktop applications, server tools, IoT apps and even system services such as the printer driver stack.[48][49] To ensure this, Snap relies onsystemd for features such as running socket-activated system services in a Snap.[50] This causes Snap to work best only on distributions that can adopt thatinit system.[51]

Adoption

[edit]
Screenshot ofSpotify-EasyRPM installation script running onopenSUSE Tumbleweed, the script downloaded the Spotify Linux Snap package from snapcraft.io, processed and converted the package intoRPM, and installed the RPM into the system

Snap initially only supported the all-SnapUbuntu Core distribution, but in June 2016, it was ported to a wide range of Linux distributions to become a format for universal Linux packages.[52] Snap requiresSystemd which is available in most, but not all, Linux distributions. OtherUnix-like systems (e.g.FreeBSD) are not supported.[53]ChromeOS does not support Snap directly, only through Linux distributions installed in it that support Snap, such asGallium OS.[54]

Ubuntu and its official derivatives pre-install Snap by default, as well as other Ubuntu-based distributions such asKDE Neon, andZorin OS.[55]Solus have currently planned to drop Snap, to reduce the burden of maintaining AppArmor patches needed for strict Snap confinement.[56]Zorin OS have removed Snap as a default package in the Zorin OS 17 release.[57] While other official Ubuntu derivatives such asKubuntu,Xubuntu, andUbuntu MATE have also shipped with the competingFlatpak as a complement, they will no longer do so beginning with Ubuntu 23.04, meaning that it must be installed manually by the user.[58]

A number of notable desktop software development companies publish their software in the Snap Store, includingGoogle,[59]JetBrains,[60]KDE,[61]Microsoft (for Linux versions of e.g. .NET Core 3.1,[62]Visual Studio Code,Skype,[63] andPowerShell),Mozilla[64] andSpotify.[65] Snaps are also used inInternet-of-Things environments, ranging from consumer-facing products[66] to enterprise device management gateways[67] andsatellite communication networks.[68][69] Finally, Snap is also used by developers of server applications such asInfluxDB,[70] Kata Containers,[71]Nextcloud[72] andTravis CI.[73]

Reception

[edit]

Snap has received mixed reaction from the developer community. On Snap's promotional site,Heroku praised Snap's auto-update as it fits their fast release schedule well.Microsoft mentions its ease of use and Snap beingYAML-based, as well as it being distribution-agnostic.JetBrains says the Snap Store gives their tools more exposure,[74][better source needed] although some users claim launching the tools takes much longer when it's installed from the Snap Store than when it's installed another way.[75][unreliable source]

Others have objected to the closed-source nature of the Snap Store. Clément Lefèbvre (Linux Mint founder and project leader[76][77]) has written that Snap is biased and has a conflict of interest. The reasons he cited include it being governed by Canonical and locked to their store, and also that Snap works better on Ubuntu than on other distributions.[78] He later announced that the installing of Snap would be blocked byAPT in Linux Mint,[79][80] although a way to disable this restriction would be documented.[81]

On recent versions of Ubuntu, Canonical has migrated certain packages exclusively to Snap, such asChromium andFirefox[82] web browsers.[83][37] The replacement of Firefox led to mixed reception from users due to performance issues with the Snap version, especially on startup.[82]

See also

[edit]

References

[edit]
  1. ^"snapcore · GitHub".GitHub.Archived from the original on 2 April 2023. Retrieved5 November 2022.
  2. ^"What's The Deal With Snap Packages?". 24 June 2020.Archived from the original on 9 June 2023. Retrieved13 February 2023.
  3. ^"snapd package versions - Repology".Repology.Archived from the original on 19 May 2021. Retrieved20 August 2021.
  4. ^"Supported interfaces | Snapcraft documentation".Snapcraft.Archived from the original on 2020-08-03. Retrieved2020-08-05.
  5. ^"Snapcraft confinement & interfaces".ReadySpace China (in Simplified Chinese). 2019-06-06. Archived fromthe original on 2020-11-25. Retrieved2020-08-05.
  6. ^"A guide to snap permissions and interfaces".ReadySpace Hong Kong. 2018-11-02. Archived fromthe original on 2020-03-19. Retrieved2020-08-05.
  7. ^"Flatpak's XDG-Desktop-Portal Adds Initial Support For Snaps - Phoronix".www.phoronix.com.Archived from the original on 2020-08-14. Retrieved2020-08-05.
  8. ^"Desktop Integration — Flatpak documentation".docs.flatpak.org. Retrieved2020-08-05.
  9. ^"The content interface".Snapcraft.Archived from the original on 2020-10-20. Retrieved2020-04-29.
  10. ^"Snappy Is Finally Doing Something About Super Large App Sizes".OMG! Ubuntu!. 2017-06-11.Archived from the original on 2020-08-14. Retrieved2020-08-07.
  11. ^"Bundling KDE".archive.fosdem.org.Archived from the original on 2021-06-28. Retrieved2020-08-07.
  12. ^abEdge, Jake (2019-11-20)."LSM stacking and the future".LWN.net.Archived from the original on 2020-08-14. Retrieved2020-08-06.
  13. ^"How Are SNAPS claiming to have no internet plug regulated?".snapcraft.io. 2020-07-11.Archived from the original on 2020-08-14. Retrieved2020-08-06.
  14. ^Johansen, John (3 February 2019)."Containers with Different Security Modules".Archived from the original on 24 July 2021. Retrieved6 August 2020.
  15. ^"How to revert to a previous version of a snap package? wekan in this case".costales.github.io. 2017-03-08.Archived from the original on 2020-08-14. Retrieved2020-08-05.
  16. ^"A Beginners Guide to Snaps in Linux - Part 1".www.tecmint.com. 5 June 2020.Archived from the original on 2020-07-27. Retrieved2020-08-05.
  17. ^"Snapcraft - Snaps are universal Linux packages".Snapcraft.Archived from the original on 2020-04-17. Retrieved2019-07-02.
  18. ^Willis, Nathan (28 January 2015)."Ubuntu Core and Snappy".Linux Weekly News.Archived from the original on 24 February 2015. Retrieved7 November 2015.
  19. ^Vaughan-Nichols, Steven J."Ubuntu Snap takes charge of Linux desktop and IoT software distribution".ZDNet.Archived from the original on 2018-02-26. Retrieved2024-07-05.
  20. ^"Controlling snap releases with channels, tracks and branches – Part 1".Ubuntu.Archived from the original on 2020-08-14. Retrieved2020-08-07.
  21. ^"Controlling snap releases with channels, tracks and branches – Part 2".Ubuntu. Retrieved2020-08-07.
  22. ^Prakash, Abhishek (23 April 2016)."Using Snap Packages In Ubuntu & Other Linux [Complete Guide]". Retrieved2020-08-07.
  23. ^abMcKay, Dave (18 March 2020)."How to Work with Snap Packages on Linux".How-To Geek. Retrieved2020-08-05.
  24. ^Ljubuncic, Igor (2022-11-15)."Hold your horses, I mean snaps! New feature lets you stop snap updates, for as long as you need".Snapcraft.Archived from the original on 2022-12-02. Retrieved2022-12-02.
  25. ^"You can finally disable Snap updates".merlijn.sebrechts.be. 2022-11-10. Retrieved2022-12-02.
  26. ^"Ubuntu snap updates will soon be able to be held temporarily and indefinitely".Neowin. Retrieved2022-12-02.
  27. ^"How To Change Snap Refresh (Update) Schedule".Linux Uprising Blog. 17 July 2019.Archived from the original on 2020-08-14. Retrieved2020-08-07.
  28. ^Pope, Alan (3 March 2020)."Controlling Snap Updates".YouTube.
  29. ^"Release 8.9.4". 11 June 2025. Retrieved17 June 2025.
  30. ^"GitHub - snapcore/snapcraft: Package, distribute, and update any app for Linux and IoT".GitHub.Archived from the original on 5 November 2022. Retrieved5 November 2022.
  31. ^Brodkin, Jon."Adios apt and yum? Ubuntu's snap apps are coming to distros everywhere".Ars Technica.Archived from the original on 14 May 2019. Retrieved13 August 2016.
  32. ^abNestor, Marius (30 January 2019)."Canonical Releases Snapcraft 3.1 Snap Creator Tool with Various Improvements".softpedia.Archived from the original on 2019-02-03. Retrieved2020-08-05.
  33. ^Nestor, Marius (10 September 2019)."Ubuntu's Snapcraft Snap Creator Tool Will Soon Get a Windows Installer".softpedia.Archived from the original on 2019-12-27. Retrieved2020-08-08.
  34. ^"Build options | Snapcraft documentation".Archived from the original on 2020-05-27. Retrieved2020-12-20.
  35. ^"Make your snap development faster".ReadySpace China (in Simplified Chinese). 2019-03-15. Archived fromthe original on 2021-06-28. Retrieved2020-08-05.
  36. ^"Using external metadata | Snapcraft documentation".Snapcraft.Archived from the original on 2020-08-13. Retrieved2020-08-05.
  37. ^abSanders, James (August 6, 2019)."Why Canonical views the Snap ecosystem as a compelling distribution-agnostic solution".TechRepublic. Archived fromthe original on 2020-08-14. Retrieved2020-08-05.
  38. ^https://forum.level1techs.com/t/malware-in-the-snap-store-again/208817
  39. ^https://www.aquasec.com/blog/snap-trap-the-hidden-dangers-within-ubuntus-package-suggestion-system
  40. ^https://hivepro.com/threat-advisory/privilege-escalation-vulnerability-in-snap-package-manager-puts-linux-users-at-risk/
  41. ^"Packages for Ubuntu".Ubuntu.Archived from the original on 2020-08-06. Retrieved2020-08-07.
  42. ^"Bogus apps in store".snapcraft.io. 2018-03-27.Archived from the original on 2021-06-28. Retrieved2020-08-07.
  43. ^Wallen, Jack (June 21, 2016)."Canonical changes the game by announcing universal snap packages".TechRepublic.Archived from the original on 2020-08-14. Retrieved2020-08-08.
  44. ^Kepes, Ben (2016-06-14)."Snap! Do the Linux distros finally agree on something?".Computerworld.Archived from the original on 2020-09-21. Retrieved2020-08-08.
  45. ^"A technical comparison between the snap and the Flatpak formats".ReadySpace Indonesia. 2019-11-14. Retrieved2020-08-05.[permanent dead link]
  46. ^"Squashfs performance effect on snap startup time".snapcraft.io. 2019-10-29.Archived from the original on 2020-08-14. Retrieved2020-08-05.
  47. ^McKay, Dave (30 April 2020)."What You Need to Know About Snaps on Ubuntu 20.04".How-To Geek.Archived from the original on 2021-07-28. Retrieved2021-07-28.
  48. ^"Call for testing: OpenPrinting's printing-stack-snap (Printing in a Snap)".snapcraft.io. 2018-03-09.Archived from the original on 2020-08-14. Retrieved2020-08-05.
  49. ^"Canonical unveils 6th LTS release of Ubuntu with 16.04".Ubuntu Insights.Canonical Ltd.Archived from the original on 3 November 2017. Retrieved22 April 2016.
  50. ^"Services and daemons".Archived from the original on 2020-08-13. Retrieved2020-07-31.
  51. ^"WSL2- Ubuntu 20.04 Snap store doesn't work due to systemd dependency · Issue #5126 · microsoft/WSL".GitHub.Archived from the original on 2020-11-01. Retrieved2020-08-07.
  52. ^Lunden, Ingrid (14 June 2016)."Ubuntu's container-style Snap app packages now work on other Linux distributions".TechCrunch.Archived from the original on 2020-08-14. Retrieved2020-08-08.
  53. ^"Installing snapd | Snapcraft documentation".Snapcraft.Archived from the original on 2022-04-22. Retrieved2022-04-25.
  54. ^"Installing snap on GalliumOS | Snapcraft documentation".Snapcraft.Archived from the original on 2020-09-23. Retrieved2020-08-18.
  55. ^"Installing snapd | Snapcraft documentation".Snapcraft.Archived from the original on 2020-08-05. Retrieved2020-08-05.
  56. ^"Snap deprecation issue".GitHub.Archived from the original on 2023-11-04. Retrieved2023-11-04.
  57. ^"Zorin community manager express the plan to remove Snap as default package".Zorin Forum. 11 December 2023. Retrieved2023-12-13.
  58. ^"Ubuntu Flavors/Spins Will No Longer Be Able To Install Flatpak By Default".www.phoronix.com. Retrieved2023-02-26.
  59. ^"Google and Canonical bring Flutter apps to Linux and the Snap Store".VentureBeat. 2020-07-08.Archived from the original on 2020-08-11. Retrieved2020-08-05.
  60. ^"Install IntelliJ IDEA on Ubuntu with Snaps – IntelliJ IDEA Blog | JetBrains".JetBrains Blog. 16 November 2017.Archived from the original on 2020-09-29. Retrieved2020-08-05.
  61. ^"Month of KDE Applications Snaps – KDE neon Developers' Blog". 13 February 2019.Archived from the original on 2020-08-04. Retrieved2020-08-05.
  62. ^.NET Core 3.1.0 Preview 2, .NET Foundation, 2019-11-08,archived from the original on 2020-04-22, retrieved2019-11-08
  63. ^Vaughan-Nichols, Steven J."Use Ubuntu's snap to install Skype on any Linux desktop".ZDNet.Archived from the original on 2020-10-30. Retrieved2020-08-08.
  64. ^Hoffman, Chris (2016-04-25)."Mozilla will provide Firefox as a Snap package for Ubuntu, cutting out the middleman".PCWorld. Retrieved2020-08-05.
  65. ^"Spotify Now Available as a Snap App on Ubuntu".OMG! Ubuntu!. 2017-12-30.Archived from the original on 2020-09-22. Retrieved2020-08-05.
  66. ^Vaughan-Nichols, Stephen J. (11 May 2015)."Ubuntu jumps into Internet of Things with Acer, GE, and Microsoft".ZDNet.Archived from the original on 9 January 2017. Retrieved7 November 2015.
  67. ^Sherman, Jordana."Snappy Core unlocks IoT value within the Dell Edge Gateway 5000 Series".Ubuntu Insights.Canonical Ltd.Archived from the original on 31 July 2017. Retrieved7 November 2015.
  68. ^"LimeSDR Mini takes off in satellites".LinuxGizmos.com. 2018-03-14.Archived from the original on 2020-08-02. Retrieved2020-08-05.
  69. ^"Ubuntu Core 18 released for secure, reliable IoT devices".Ubuntu.Archived from the original on 2020-08-09. Retrieved2020-08-05.
  70. ^"Install influxdb for Linux using the Snap Store".Snapcraft.Archived from the original on 2020-08-05. Retrieved2020-08-05.
  71. ^Nestor, Marius (27 July 2018)."You Can Now Install Kata Containers VM as a Snap on Ubuntu, Other Linux Distros".softpedia.Archived from the original on 2020-08-14. Retrieved2020-08-05.
  72. ^Wallen, Jack (April 27, 2020)."How to install Nextcloud with SSL using snap".TechRepublic.Archived from the original on 2020-07-17. Retrieved2020-08-08.
  73. ^"Install travis-worker for Linux using the Snap Store".Snapcraft.Archived from the original on 2021-06-28. Retrieved2020-08-05.
  74. ^"SnapCraft homepage".snapcraft.io.Archived from the original on April 17, 2020. RetrievedJuly 23, 2021.
  75. ^"Tip/Guide: For drastically faster Jetbrains IDE startups avoid installing with Snap". 8 November 2019. RetrievedSeptember 20, 2024.
  76. ^"Q&A: Clement Lefebvre: The man behind Linux Mint".computerworld.com. 21 October 2013.Archived from the original on 31 May 2023. RetrievedMay 31, 2023.
  77. ^"Teams".linuxmint.com.Archived from the original on October 3, 2017. RetrievedJanuary 7, 2020.
  78. ^"Monthly News – June 2019".blog.linuxmint.com. 2 July 2019.Archived from the original on 24 October 2020. RetrievedOctober 23, 2019.
  79. ^Lefèbvre, Clément (June 2020)."Monthly News – May 2020".The Linux Mint Blog. The Mint Team.Archived from the original on 10 June 2020. Retrieved10 June 2020.
  80. ^"Linux Mint dumps Ubuntu Snap".ZDNET.Archived from the original on 2022-12-03. Retrieved2022-12-03.
  81. ^Anderson, Tim (2 June 2020)."Snapping at Canonical's Snap: Linux Mint team says no to Ubuntu store 'backdoor'".The Register. Situation Publishing.Archived from the original on 3 June 2020. Retrieved10 June 2020.
  82. ^ab"Canonical Continues Working On Ubuntu's Firefox Snap Performance".www.phoronix.com.Archived from the original on 2023-02-26. Retrieved2023-02-26.
  83. ^Vaughan-Nichols, Steven J."Ubuntu opens the door to talking with Linux Mint about Snap".ZDNet.Archived from the original on 2020-08-14. Retrieved2020-08-08.

External links

[edit]
dpkg
RPM
Embedded systems
  • ipkg
Distribution-agnostic
Others (binary)
Others (source)
Front-ends
Related topics
Gaming console
Unix-like,
Linux
dpkg
Purely functional
RPM
tarball
Other
macOS
z/OS
Mobile
operating
systems
Multi-platform
Solaris,illumos
Web browsers
Windows
BSD
C++
Java
JavaScript
Kubernetes
Linux
macOS
.NET
Perl
PHP
Python
Ruby
Rust
Scala
Software digital distributionplatforms
Active
Personal
computers
Consoles
Mobile
devices
§
Arcade
Defunct
Retrieved from "https://en.wikipedia.org/w/index.php?title=Snap_(software)&oldid=1297921999"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp