Editing Snap

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
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:
+
* Install your first application: <code>snap install hello</code>
:::<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>
** Search for Canonical’s snaps:
+
** Search for Canonical’s snaps:<code>snap find Canonical</code>
::: <code>[[snap find]] Canonical</code>
+
* List installed snaps: <code>snap list</code>
* List installed snaps:
+
* <code>snap changes</code>
:::<code>[[snap list]]</code>
+
* Show Info: <code>snap info SNAP_NAME</code>
* <code>[[snap changes]]</code>
+
* Update your snaps: <code>sudo snap refresh</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 ==
 
== Adoption ==
Line 42: Line 27:
 
* 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 ==
 
* {{snap}}
 
* {{snap}}
* {{package managers}}
+
* [[Ubuntu]]
 +
* {{apt}}
 +
* [[Docker]] [[containers]]
  
 
{{CC license}}
 
{{CC license}}
 
Original Source: https://en.wikiversity.org/wiki/Snap
 
Original Source: https://en.wikiversity.org/wiki/Snap
  
[[Category:Snap]]
+
[[Category:Linux]]
 
[[Category:Ubuntu]]
 
[[Category:Ubuntu]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: