https://wiki.archlinux.org/api.php?action=feedcontributions&user=Zyga&feedformat=atomArchWiki - User contributions [en]2024-03-29T07:08:43ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Snap&diff=490244Snap2017-09-14T09:38:20Z<p>Zyga: Update `--devmode` to `--dangerous`</p>
<hr />
<div>[[Category:Development]]<br />
[[ja:snapd]]<br />
[[ru:Snapd]]<br />
[https://github.com/snapcore/snapd snapd] is a REST API daemon for managing snap packages ("snaps"). Users can interact with it by using the ''snap'' client, which is part of the same package. <br />
<br />
==Installation==<br />
<br />
[[Install]] {{Pkg|snapd}} from the official repositories. <br />
<br />
Installing it will install the {{ic|snapd}} daemon as well as ''snap-confine'', which mounts and launches snap packages.<br />
<br />
{{Warning|[https://github.com/snapcore/snap-confine snap-confine] is built with the {{ic|--disable-apparmor}} option; full confinement relies on an [[AppArmor]] enabled kernel with Ubuntu's [http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux_4.4.0-21.37.diff.gz Linux 4.4 patchset] applied and a related profile for the snap.}}<br />
<br />
{{tip|{{ic|snapd}} installs a script in {{ic|/etc/profile.d/}} to export the paths of binaries installed with the snapd package and desktop entries. Reboot once to make this change take effect.}}<br />
<br />
==Configuration==<br />
The package ships several systemd unit files, which manage several tasks like automatically refreshing all installed snaps once a new version is released.<br />
<br />
To launch the {{ic|snapd}} daemon when ''snap'' tries to use it, [[start]] the {{ic|snapd.socket}} and/or [[enable]] it to have it started at boot.<br />
<br />
To start the timer which periodically refreshes snaps when a new version is pushed to the store use:<br />
# systemctl start snapd.refresh.timer<br />
<br />
==Removal==<br />
<br />
Uninstalling the {{Pkg|snapd}} package will not remove directories and files created while using ''snap''. It's best to remove your snaps with ''snap remove'' before uninstalling the {{Pkg|snapd}} package.<br />
At this time it is not possible to remove the core snap through the ''snap'' command. To remove the state, snap package cache and mount unit files completely, you can follow the instructions below.<br />
<br />
1. We unmount any currently active snap that is mounted to {{ic|/var/lib/snapd/snap/}}. <br />
<br />
# umount $(mount | grep snap | awk '{print $3}')<br />
<br />
2. We remove the state directory and mount hook.<br />
# rm -rf /var/lib/snapd<br />
# rm -rf /var/snap<br />
<br />
3. We remove any unit files, that try to mount snaps from {{ic|/var/lib/snapd/snaps}} to {{ic|/var/lib/snapd/snap}} at boot.<br />
# find /etc/systemd/system -name "snap-*.mount" -delete<br />
# find /etc/systemd/system -name "snap.*.service" -delete<br />
# find /etc/systemd/system/multi-user.target.wants -name "snap-*.mount" -delete<br />
# find /etc/systemd/system/multi-user.target.wants -name "snap.*.service" -delete<br />
<br />
== Managing snaps == <br />
<br />
The ''snap'' tool is used to manage the snaps. <br />
=== Finding ===<br />
To find snaps to install, you can query the Ubuntu Store with:<br />
<br />
$ snap find ''searchterm''<br />
<br />
=== Installing ===<br />
Once you found the snap you are looking for you can install it with:<br />
# snap install ''snapname''<br />
This requires root privileges. Per user installation of snaps is not possible, yet. This will download the snap into {{ic|/var/lib/snapd/snaps}} and mount it to {{ic|/snap/''snapname''}} to make it available to the system. At this point you may want to add {{ic|/var/lib/snapd/snap/bin}}to your $PATH variable in order to execute the installed snaps.<br />
<br />
It will also create mount units for each snap and add them to {{ic| /etc/systemd/system/multi-user.target.wants/}} as symlinks to make all snaps available when the system is booted.<br />
Once that is done you should find it in the list of installed snaps together with its version number, revision and developer using:<br />
$ snap list<br />
<br />
You can also sideload snaps from your local hard drive with:<br />
# snap install --dangerous ''/path/to/snap''<br />
<br />
=== Updating ===<br />
To update your snaps use:<br />
# snap refresh<br />
<br />
=== Removing ===<br />
Snaps can be removed by executing:<br />
# snap remove ''snapname''<br />
<br />
== Support ==<br />
Arch Linux related mailing lists and other official Arch Linux support channels aren't an appropriate place to request help with snaps on Arch Linux. An appropriate place to ask for support is the [https://forum.snapcraft.io Snapcraft forum].<br />
<br />
== See also == <br />
<br />
* [http://arstechnica.com/information-technology/2016/06/goodbye-apt-and-yum-ubuntus-snap-apps-are-coming-to-distros-everywhere/ arstechnica article] (06/16) about Ubuntu snaps becoming available for Arch and other distros</div>Zygahttps://wiki.archlinux.org/index.php?title=Snap&diff=490243Snap2017-09-14T09:31:33Z<p>Zyga: Replace snap name ubuntu-core (legacy) with core (current)</p>
<hr />
<div>[[Category:Development]]<br />
[[ja:snapd]]<br />
[[ru:Snapd]]<br />
[https://github.com/snapcore/snapd snapd] is a REST API daemon for managing snap packages ("snaps"). Users can interact with it by using the ''snap'' client, which is part of the same package. <br />
<br />
==Installation==<br />
<br />
[[Install]] {{Pkg|snapd}} from the official repositories. <br />
<br />
Installing it will install the {{ic|snapd}} daemon as well as ''snap-confine'', which mounts and launches snap packages.<br />
<br />
{{Warning|[https://github.com/snapcore/snap-confine snap-confine] is built with the {{ic|--disable-apparmor}} option; full confinement relies on an [[AppArmor]] enabled kernel with Ubuntu's [http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux_4.4.0-21.37.diff.gz Linux 4.4 patchset] applied and a related profile for the snap.}}<br />
<br />
{{tip|{{ic|snapd}} installs a script in {{ic|/etc/profile.d/}} to export the paths of binaries installed with the snapd package and desktop entries. Reboot once to make this change take effect.}}<br />
<br />
==Configuration==<br />
The package ships several systemd unit files, which manage several tasks like automatically refreshing all installed snaps once a new version is released.<br />
<br />
To launch the {{ic|snapd}} daemon when ''snap'' tries to use it, [[start]] the {{ic|snapd.socket}} and/or [[enable]] it to have it started at boot.<br />
<br />
To start the timer which periodically refreshes snaps when a new version is pushed to the store use:<br />
# systemctl start snapd.refresh.timer<br />
<br />
==Removal==<br />
<br />
Uninstalling the {{Pkg|snapd}} package will not remove directories and files created while using ''snap''. It's best to remove your snaps with ''snap remove'' before uninstalling the {{Pkg|snapd}} package.<br />
At this time it is not possible to remove the core snap through the ''snap'' command. To remove the state, snap package cache and mount unit files completely, you can follow the instructions below.<br />
<br />
1. We unmount any currently active snap that is mounted to {{ic|/var/lib/snapd/snap/}}. <br />
<br />
# umount $(mount | grep snap | awk '{print $3}')<br />
<br />
2. We remove the state directory and mount hook.<br />
# rm -rf /var/lib/snapd<br />
# rm -rf /var/snap<br />
<br />
3. We remove any unit files, that try to mount snaps from {{ic|/var/lib/snapd/snaps}} to {{ic|/var/lib/snapd/snap}} at boot.<br />
# find /etc/systemd/system -name "snap-*.mount" -delete<br />
# find /etc/systemd/system -name "snap.*.service" -delete<br />
# find /etc/systemd/system/multi-user.target.wants -name "snap-*.mount" -delete<br />
# find /etc/systemd/system/multi-user.target.wants -name "snap.*.service" -delete<br />
<br />
== Managing snaps == <br />
<br />
The ''snap'' tool is used to manage the snaps. <br />
=== Finding ===<br />
To find snaps to install, you can query the Ubuntu Store with:<br />
<br />
$ snap find ''searchterm''<br />
<br />
=== Installing ===<br />
Once you found the snap you are looking for you can install it with:<br />
# snap install ''snapname''<br />
This requires root privileges. Per user installation of snaps is not possible, yet. This will download the snap into {{ic|/var/lib/snapd/snaps}} and mount it to {{ic|/snap/''snapname''}} to make it available to the system. At this point you may want to add {{ic|/var/lib/snapd/snap/bin}}to your $PATH variable in order to execute the installed snaps.<br />
<br />
It will also create mount units for each snap and add them to {{ic| /etc/systemd/system/multi-user.target.wants/}} as symlinks to make all snaps available when the system is booted.<br />
Once that is done you should find it in the list of installed snaps together with its version number, revision and developer using:<br />
$ snap list<br />
<br />
You can also sideload snaps from your local hard drive with:<br />
# snap install --devmode ''/path/to/snap''<br />
<br />
=== Updating ===<br />
To update your snaps use:<br />
# snap refresh<br />
<br />
=== Removing ===<br />
Snaps can be removed by executing:<br />
# snap remove ''snapname''<br />
<br />
== Support ==<br />
Arch Linux related mailing lists and other official Arch Linux support channels aren't an appropriate place to request help with snaps on Arch Linux. An appropriate place to ask for support is the [https://forum.snapcraft.io Snapcraft forum].<br />
<br />
== See also == <br />
<br />
* [http://arstechnica.com/information-technology/2016/06/goodbye-apt-and-yum-ubuntus-snap-apps-are-coming-to-distros-everywhere/ arstechnica article] (06/16) about Ubuntu snaps becoming available for Arch and other distros</div>Zygahttps://wiki.archlinux.org/index.php?title=Snap&diff=439774Snap2016-07-04T11:40:52Z<p>Zyga: Replaced --disable-confinement with --disable-apparmor</p>
<hr />
<div>[[Category:Development]]<br />
[[ja:snapd]]<br />
[[ru:Snapd]]<br />
[https://github.com/snapcore/snapd snapd] is a REST API daemon for managing snap packages ("snaps"). Users can interact with it by using the ''snap'' client, which is part of the same package. <br />
<br />
==Installation==<br />
<br />
[[Install]] {{Pkg|snapd}} from the official repositories. <br />
<br />
Installing it will install the {{ic|snapd}} daemon as well as ''snap-confine'', which mounts and launches snap packages. Note that [https://github.com/snapcore/snap-confine snap-confine] is built with the {{ic|--disable-apparmor}} option; full confinement relies on an [[AppArmor]] enabled kernel and related profile for the snap.<br />
<br />
{{tip|{{ic|snapd}} installs a script in {{ic|/etc/profile.d/}} to export the paths of binaries installed with the snapd package and desktop entries. Reboot once to make this change take effect.}}<br />
<br />
==Configuration==<br />
The package ships several systemd unit files, which manage several tasks like automatically refreshing all installed snaps once a new version is released.<br />
<br />
To launch the {{ic|snapd}} daemon when ''snap'' tries to use it, [[start]] the {{ic|snapd.socket}} and/or [[enable]] it to have it started at boot.<br />
<br />
To start the timer which periodically refreshes snaps when a new version is pushed to the store use:<br />
# systemctl start snapd.refresh.timer<br />
<br />
==Removal==<br />
<br />
Uninstalling the {{AUR|snapd}} package will not remove directories and files created while using ''snap''. It's best to remove your snaps with ''snap remove'' before uninstalling the {{AUR|snapd}} package.<br />
At this time it is not possible to remove the ubuntu-core snap through the ''snap'' command. To remove the state, snap package cache and mount unit files completely, you can follow the instructions below.<br />
<br />
1. We unmount any currently active snap that is mounted to {{ic|/snap}}. <br />
<br />
# umount $(mount | grep snap | awk '{print $3}')<br />
<br />
2. We remove the state directory and mount hook.<br />
# rm -rf /var/lib/snapd<br />
# rm -rf /snap<br />
<br />
3. We remove any unit files, that try to mount snaps from {{ic|/var/lib/snapd/snaps}} to {{ic|/snap}} at boot.<br />
# find /etc/systemd/system -name "snap-*.mount" -delete<br />
# find /etc/systemd/system -name "snap.*.service" -delete<br />
# find /etc/systemd/system/multi-user.target.wants -name "snap-*.mount" -delete<br />
# find /etc/systemd/system/multi-user.target.wants -name "snap.*.service" -delete<br />
<br />
== Managing snaps == <br />
<br />
The ''snap'' tool is used to manage the snaps. <br />
=== Finding ===<br />
To find snaps to install, you can query the Ubuntu Store with:<br />
<br />
$ snap find<br />
which will list every snap that is available to install. To search for a specific snap use:<br />
$ snap find ''searchterm''<br />
<br />
=== Installing ===<br />
Once you found the snap you are looking for you can install it with:<br />
# snap install ''snapname''<br />
This requires root privileges. Per user installation of snaps is not possible, yet. This will download the snap into {{ic|/var/lib/snapd/snaps}} and mount it to {{ic|/snap/''snapname''}} to make it available to the system.<br />
<br />
It will also create mount units for each snap and add them to {{ic| /etc/systemd/system/multi-user.target.wants/}} as symlinks to make all snaps available when the system is booted.<br />
Once that is done you should find it in the list of installed snaps together with its version number, revision and developer using:<br />
$ snap list<br />
<br />
You can also sideload snaps from your local hard drive with:<br />
# snap install --devmode ''/path/to/snap''<br />
<br />
=== Updating ===<br />
To update your snaps use:<br />
# snap refresh<br />
<br />
=== Removing ===<br />
Snaps can be removed by executing:<br />
# snap remove ''snapname''<br />
<br />
== See also == <br />
<br />
* [http://arstechnica.com/information-technology/2016/06/goodbye-apt-and-yum-ubuntus-snap-apps-are-coming-to-distros-everywhere/ arstechnica article] (06/16) about Ubuntu snaps becoming available for Arch and other distros</div>Zyga