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
Line 5: Line 5:
 
== 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: <code>snap install hello</code>
+
* Install your first application:
 +
:::<code>[[snap install]] hello</code>
 
* Remove an application: <code>snap remove hello-world</code>
 
* Remove an application: <code>snap remove hello-world</code>
 
* Search for your application: <code>[[snap find]] SNAP_TO_SEARCH</code>
 
* Search for your application: <code>[[snap find]] SNAP_TO_SEARCH</code>

Revision as of 12:56, 19 April 2020

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

  • 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 list
  • snap changes
  • Show Info: snap info SNAP_NAME
  • Update your snaps: sudo snap refresh

Directories

  • /var/lib/snapd/snaps/

Snapshots and Roll Back

  • Take a snapshot: snap save
  • Roll Back (including data): sudo snap revert hello

Channels

  • Change channel: sudo snap refresh hello --channel=beta

Adoption

Snaps were introduced in Ubuntu 16.04 LTS.

Activities

See also

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: