Difference between revisions of "Snap"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
 
(15 intermediate revisions by 3 users not shown)
Line 4: Line 4:
  
 
== Basic operations ==
 
== Basic operations ==
* Installation: <code>sudo [[apt]] install snapd</code><ref>https://tutorials.ubuntu.com/tutorial/basic-snap-usage#1</ref>
+
* Installation: <code>sudo [[apt install snapd]]</code><ref>https://tutorials.ubuntu.com/tutorial/basic-snap-usage#1</ref>
 
* Install your first application:  
 
* Install your first application:  
 
:::<code>[[snap install]] hello</code>
 
:::<code>[[snap install]] hello</code>
Line 23: Line 23:
  
 
== Directories ==
 
== Directories ==
* <code>[[/var/lib/]]snapd/snaps/</code>
+
* <code>[[/var/lib/snapd/snaps/]]</code>
 +
* <code>[[/snap/]]</code>
 +
* <code>[[/snap/bin/]]</code>
 +
* <code>[[/var/lib/snapd/cache/]]</code>
  
 
== Snapshots and Roll Back==
 
== Snapshots and Roll Back==
Line 30: Line 33:
  
 
== Channels ==
 
== Channels ==
* Change channel: <code>sudo [[snap refresh]] hello --channel=beta</code>
+
* Change channel: <code>sudo [[snap refresh]] hello [[--channel]]=beta</code>
 
* <code>[[snap info]] PACKAGE</code> (To show channels)
 
* <code>[[snap info]] PACKAGE</code> (To show channels)
  
Line 41: Line 44:
 
* <code>sudo [[systemctl restart]] snapd.service</code>
 
* <code>sudo [[systemctl restart]] snapd.service</code>
  
== Related terms ==
+
== Related ==
 
* <code>[[snap start]]</code>
 
* <code>[[snap start]]</code>
 
* <code>[[Squashfs]]</code>
 
* <code>[[Squashfs]]</code>
 +
* <code>[[find]] [[/snap/]]<snapname>/current/</code>
 +
* <code>[[/snap/bin/]]</code>
 +
* [[Flatpak]]
 +
* [[systemctl stop snapd]]
 +
* [[geth --syncmode snap]]
 +
* [[Brew]]
  
 
== See also ==
 
== See also ==
 
* {{snap}}
 
* {{snap}}
* {{apt}}
 
 
* {{package managers}}
 
* {{package managers}}
* {{Ubuntu}}
 
  
 
{{CC license}}
 
{{CC license}}
 
Original Source: https://en.wikiversity.org/wiki/Snap
 
Original Source: https://en.wikiversity.org/wiki/Snap
  
[[Category:Linux]]
+
[[Category:Snap]]
 
[[Category:Ubuntu]]
 
[[Category:Ubuntu]]

Latest revision as of 14:36, 18 February 2024

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.

Basic operations[edit]

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 list
snap info SNAP_NAME

Directories[edit]

Snapshots and Roll Back[edit]

Channels[edit]

Adoption[edit]

Snaps were introduced in Ubuntu 16.04 LTS.

Activities[edit]

Related[edit]

See also[edit]

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: