Difference between revisions of "Snap"

1,411 bytes added ,  3 years ago
Updated style and added translate tags
imported>Dalto
(Add section on removing snap support and update to reflect the current state of Manjaro)
(Updated style and added translate tags)
Line 1: Line 1:
[[File:Snapcraft.png|x250px|right]]
<languages/>
__TOC__


<div style="clear: both"></div>
{{FlexSideContainerTemplate|__TOC__|[[File:Snapcraft.png|250px]]|7|1}}
 
 
=Overview=


{{SectionTemplate|<translate>Overview</translate>|2=
<translate>
[https://snapcraft.io/ Snaps] are a distro independent method for packaging and distributing Linux software.
[https://snapcraft.io/ Snaps] are a distro independent method for packaging and distributing Linux software.


Line 18: Line 16:
* Snaps do not always integrate with system themes
* Snaps do not always integrate with system themes
* Snaps may need to install shared run-times which consume disk space
* Snaps may need to install shared run-times which consume disk space
</translate>
}}


 
{{SectionTemplate|<translate>Installing Support for Snaps</translate>|2=
=Installing Support for Snaps=
<translate>
 
To use Snaps you to install and configure the Snap Daemon.  It is available in the Manjaro repos as {{ic|snapd}} and can be installed with your favorite package manager or using the command
To use Snaps you to install and configure the Snap Daemon.  It is available in the Manjaro repos as {{ic|snapd}} and can be installed with your favorite package manager or using the command
pamac install snapd
</translate>
 
{{UserCmd|command=pamac install snapd}}
 
<translate>
Once installed, you need to enable snapd using the command:
Once installed, you need to enable snapd using the command:
sudo systemctl enable --now snapd.socket
</translate>
 
{{UserCmd|command=sudo systemctl enable --now snapd.socket}}
 
<translate>
If you also want support for classic snaps you can use the command:
If you also want support for classic snaps you can use the command:
ln -s /var/lib/snapd/snap /snap
</translate>
 
{{UserCmd|command=ln -s /var/lib/snapd/snap /snap}}
 
}}
=Using Snaps=
 
 
==Managing Snaps via Discover==
 
[[File:Kdediscover.png|left|400px]]
 


{{SectionTemplate|<translate>Using Snaps</translate>|2=
<!-- sub 1 -->
{{SubContentTemplate|<translate>Managing Snaps via Discover</translate>|2=
{{FlexSideContainerTemplate|[[File:Kdediscover.png|400px]]|
<translate>
One way to manage your Snaps is with the application [https://userbase.kde.org/Discover Discover] from the KDE project.  You need a special version of Discover that can be found in the repos to manage snaps.  This is now installed by default in some Manjaro editions that include Discover.  If it isn't, you can install the package {{ic|discover-snap}} with your favorite package manager or the command:
One way to manage your Snaps is with the application [https://userbase.kde.org/Discover Discover] from the KDE project.  You need a special version of Discover that can be found in the repos to manage snaps.  This is now installed by default in some Manjaro editions that include Discover.  If it isn't, you can install the package {{ic|discover-snap}} with your favorite package manager or the command:
pamac install discover-snap
</translate>
 
{{UserCmd|command=pamac install discover-snap}}
 
<translate>
Once installed you can run '''Discover''' and you will be able to browse and install Snaps with a familiar store interface.
Once installed you can run '''Discover''' and you will be able to browse and install Snaps with a familiar store interface.
</translate>
{{tip|<translate>Discover can also install and update software from the Manjaro repos if you install the package {{ic|packagekit-qt5}}</translate>}}
}}
|4=1}}


 
<!-- sub 2 -->
{{tip|Discover can also install and update software from the Manjaro repos if you install the package {{ic|packagekit-qt5}}}}
{{SubContentTemplate|<translate>Managing Snaps via Gnome Software</translate>|2=
 
{{FlexSideContainerTemplate|[[File:Gnomesoftware.png|400px]]|
<div style="clear: both"></div>
<translate>
 
 
==Managing Snaps via Gnome Software==
 
[[File:Gnomesoftware.png|left|400px]]
 
 
Another way to manage your Snaps is with the application [https://wiki.gnome.org/Apps/Software Gnome Software] from the Gnome project.  You need a special version of Gnome Software that has support for managing snaps.  This now comes pre-installed in several Manjaro editions.  If it isn't, you can install the package {{ic|gnome-software-snap}} with your favorite package manager or the command:
Another way to manage your Snaps is with the application [https://wiki.gnome.org/Apps/Software Gnome Software] from the Gnome project.  You need a special version of Gnome Software that has support for managing snaps.  This now comes pre-installed in several Manjaro editions.  If it isn't, you can install the package {{ic|gnome-software-snap}} with your favorite package manager or the command:
pamac install gnome-software-snap
</translate>
 
{{UserCmd|command=pamac install gnome-software-snap}}
 
<translate>
Once installed you can run '''Software''' and you will be able to browse and install Snaps with a familiar store interface.
Once installed you can run '''Software''' and you will be able to browse and install Snaps with a familiar store interface.
</translate>
{{tip|<translate>Gnome Software can also install and update software from the Manjaro repos</translate>}}
}}
|4=1}}
}}


{{SectionTemplate|<translate>Managing Snaps via the CLI</translate>|2=
<!-- sub 1 -->
{{SubContentTemplate|<translate>Finding and Installing Snaps</translate>|
<translate>
You can use the command {{ic|snap search}} to search for available Snaps.  For example, if you wanted to install VLC here is what it might look like:
</translate>
{{UserCmd|command=snap search vlc}}


{{tip|Gnome Software can also install and update software from the Manjaro repos}}
<div style="clear: both"></div>
=Managing Snaps via the CLI=
==Finding and Installing Snaps==
You can use the command {{ic|snap search}} to search for available Snaps.  For example, if you wanted to install VLC here is what it might look like:
snap search vlc
  Name            Version                Publisher  Notes  Summary
  Name            Version                Publisher  Notes  Summary
  vlc            3.0.6                  videolan✓  -      The ultimate media player
  vlc            3.0.6                  videolan✓  -      The ultimate media player
Line 83: Line 77:
  mjpg-streamer  2.0                    ogra      -      UVC webcam streaming tool
  mjpg-streamer  2.0                    ogra      -      UVC webcam streaming tool
  audio-recorder  3.0.5+rev1432+pkg-7b07  brlin      -      A free audio-recorder for Linux
  audio-recorder  3.0.5+rev1432+pkg-7b07  brlin      -      A free audio-recorder for Linux
   
   
 
<translate>
From this output we can see that VLC and some related applications are avialable.  To install VLC, we would use the command
From this output we can see that VLC and some related applications are avialable.  To install VLC, we would use the command
snap install vlc
</translate>
 
{{UserCmd|command=snap install vlc}}
 
<translate>
This will install the application as well as any required run-times.  Once the application is installed you should be able to run it from your menu as you would with any application.
This will install the application as well as any required run-times.  Once the application is installed you should be able to run it from your menu as you would with any application.
</translate>
|4=1}}


 
<!-- sub 2 -->
==Displaying Detailed Snap Information==
{{SubContentTemplate|<translate>Displaying Detailed Snap Information</translate>|
 
<translate>
You can get more details about a specific Snap using the command {{ic|snap info}}.  For example:
You can get more details about a specific Snap using the command {{ic|snap info}}.  For example:
</translate>
{{UserCmd|command=snap info vlc}}


<pre>snap info vlc
<pre>
name:      vlc
name:      vlc
summary:  The ultimate media player
summary:  The ultimate media player
Line 119: Line 116:
</pre>
</pre>


 
|4=1}}
==Getting a list of installed Snaps==
<!-- sub 3 -->
 
{{SubContentTemplate|<translate>Getting a list of installed Snaps</translate>|
<translate>
To show a list of all the Snaps and run-times that are currently installed you can use the command:
To show a list of all the Snaps and run-times that are currently installed you can use the command:
snap list
</translate>
{{UserCmd|command=snap list}}
|4=1}}


<!-- sub 4 -->


==Removing Snaps==
{{SubContentTemplate|<translate>Removing Snaps</translate>|
 
<translate>
You can remove Snaps with the command {{ic|snap remove}}.  For example:
You can remove Snaps with the command {{ic|snap remove}}.  For example:
snap remove vlc
</translate>
{{UserCmd|command=snap remove vlc}}
|4=1}}


<!-- sub 5 -->


=Removing Snap Support=
{{SubContentTemplate|<translate>Removing Snap Support</translate>|
 
<translate>
If you want to remove support for snaps from the system, you can do so with a few simple steps.
If you want to remove support for snaps from the system, you can do so with a few simple steps.


First, check if you have {{ic|gnome-software-snap}} or {{ic|discover-snap}} installed.
First, check if you have {{ic|gnome-software-snap}} or {{ic|discover-snap}} installed.
pamac list -i | grep snap
</translate>
 
{{UserCmd|command=pamac list -i | grep snap}}
 
<translate>
If you find either of those packages, replace them with the non-snap versions.  For example, if {{ic|gnome-software-snap}} was on that list you can replace it with:
If you find either of those packages, replace them with the non-snap versions.  For example, if {{ic|gnome-software-snap}} was on that list you can replace it with:
pamac install gnome-software
</translate>
 
{{UserCmd|command=pamac install gnome-software}}


<translate>
Next, remove snapd itself
Next, remove snapd itself
pamac remove snapd
</translate>
 
{{UserCmd|command=pamac remove snapd}}


<translate>
Optionally, you can also remove the remaining snapd files which would include any installed snaps.
Optionally, you can also remove the remaining snapd files which would include any installed snaps.
sudo rm -r /var/lib/snapd
</translate>
{{UserCmd|command=sudo rm -r /var/lib/snapd}}
|4=1}}


}}


[[Category:Contents Page]]
[[Category:Contents Page{{#translation:}}]]
[[Category:Software Management{{#translation:}}]]