Difference between revisions of "Snap"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(55 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[wikipedia:Snappy_(package_manager)|Snap]]<ref> https://github.com/snapcore/snapd</ref> is a software deployment and package management for Linux available at least since 2015<ref> https://github.com/snapcore/snapd/releases/tag/0.1-0ubuntu1</ref> with support for channels<ref>https://snapcraft.io/docs/channels</ref> and parallel installs  <ref>https://snapcraft.io/docs/parallel-installs</ref>.
+
[[wikipedia:Snappy_(package_manager)|Snap]]<ref> https://github.com/snapcore/snapd</ref> is a software deployment and [[package management]] for Linux available at least since [[2015]] <ref> https://github.com/snapcore/snapd/releases/tag/0.1-0ubuntu1</ref> with support for channels<ref>https://snapcraft.io/docs/channels</ref> and parallel installs  <ref>https://snapcraft.io/docs/parallel-installs</ref>.
  
 
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.
 
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 ==
 
== 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>
* List snaps: <code>snap list</code>
+
** Search for Canonical’s snaps:
* Show Info: <code>snap info SNAP_NAME</code>
+
::: <code>[[snap find]] Canonical</code>
* Update your snaps: <code>sudo snap refresh</code>
+
* List installed snaps:
 +
:::<code>[[snap list]]</code>
 +
* <code>[[snap changes]]</code>
 +
* Show Info:
 +
::: <code>[[snap info]] SNAP_NAME</code>
 +
* Update your snaps: <code>sudo [[snap refresh]]</code>
 +
* <code>[[snap set]]</code>. For example: <code>[[snap set]] [[rocketchat]]-server port=4000</code>
 +
* <code>[[snap get]]</code>
 +
* <code>[[snap switch]]</code>
 +
* <code>[[snap services]]</code>
 +
 
 +
== Directories ==
 +
* <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==
* Take a snapshot: <code>snap save</code>
+
* Take a [[snapshot]]: <code>[[snap save]]</code>
 
* Roll Back (including data): <code>sudo snap revert hello</code>
 
* Roll Back (including data): <code>sudo snap revert hello</code>
  
 
== 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)
 +
 
 +
== Adoption ==
 +
Snaps were introduced in [[Ubuntu releases|Ubuntu 16.04 LTS]].
  
 
== Activities ==
 
== Activities ==
 
* Read snap source code: https://github.com/snapcore/snapd
 
* Read snap source code: https://github.com/snapcore/snapd
* Enable snaps in Fedora: <code>sudo dnf install snapd</code> and <code>sudo systemctl enable --now snapd.socket</code>
+
* Enable snaps in Fedora: <code>sudo dnf install snapd</code> and <code>sudo [[systemctl]] enable --now snapd.socket</code>
 +
* <code>sudo [[systemctl restart]] snapd.service</code>
 +
 
 +
== Related ==
 +
* <code>[[snap start]]</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 ==
* [[Snapcraft]] tool for developers to package their programs in the Snap format
+
* {{snap}}
* [[Ubuntu]]
+
* {{package managers}}
* [[devOps/Docker|docker]] [[devOps/Container|containers]]
 
  
 
{{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]]

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: