Difference between revisions of "Snap"

Marked this version for translation
(Updated style and added translate tags)
(Marked this version for translation)
Line 3: Line 3:
{{FlexSideContainerTemplate|__TOC__|[[File:Snapcraft.png|250px]]|7|1}}
{{FlexSideContainerTemplate|__TOC__|[[File:Snapcraft.png|250px]]|7|1}}


{{SectionTemplate|<translate>Overview</translate>|2=
{{SectionTemplate|<translate><!--T:1--> Overview</translate>|2=
<translate>
<translate>
<!--T:2-->
[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.




<!--T:3-->
Using software distributed by Snap has a couple of distinct advantages:
Using software distributed by Snap has a couple of distinct advantages:
* Software that is not compatible with current system libraries will still work when packaged as a Snap
* Software that is not compatible with current system libraries will still work when packaged as a Snap
Line 13: Line 15:




<!--T:4-->
There are some other considerations to be aware of:
There are some other considerations to be aware of:
* Snaps do not always integrate with system themes
* Snaps do not always integrate with system themes
Line 19: Line 22:
}}
}}


{{SectionTemplate|<translate>Installing Support for Snaps</translate>|2=
{{SectionTemplate|<translate><!--T:5--> Installing Support for Snaps</translate>|2=
<translate>
<translate>
<!--T:6-->
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
</translate>
</translate>
{{UserCmd|command=pamac install snapd}}
{{UserCmd|command=pamac install snapd}}
<translate>
<translate>
<!--T:7-->
Once installed, you need to enable snapd using the command:
Once installed, you need to enable snapd using the command:
</translate>
</translate>
{{UserCmd|command=sudo systemctl enable --now snapd.socket}}
{{UserCmd|command=sudo systemctl enable --now snapd.socket}}
<translate>
<translate>
<!--T:8-->
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:
</translate>
</translate>
Line 34: Line 40:
}}
}}


{{SectionTemplate|<translate>Using Snaps</translate>|2=
{{SectionTemplate|<translate><!--T:9--> Using Snaps</translate>|2=
<!-- sub 1 -->
<!-- sub 1 -->
{{SubContentTemplate|<translate>Managing Snaps via Discover</translate>|2=
{{SubContentTemplate|<translate><!--T:10--> Managing Snaps via Discover</translate>|2=
{{FlexSideContainerTemplate|[[File:Kdediscover.png|400px]]|
{{FlexSideContainerTemplate|[[File:Kdediscover.png|400px]]|
<translate>
<translate>
<!--T:11-->
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:
</translate>
</translate>
{{UserCmd|command=pamac install discover-snap}}
{{UserCmd|command=pamac install discover-snap}}
<translate>
<translate>
<!--T:12-->
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>
</translate>
{{tip|<translate>Discover can also install and update software from the Manjaro repos if you install the package {{ic|packagekit-qt5}}</translate>}}
{{tip|<translate><!--T:13--> Discover can also install and update software from the Manjaro repos if you install the package {{ic|packagekit-qt5}}</translate>}}
}}
}}
|4=1}}
|4=1}}


<!-- sub 2 -->
<!-- sub 2 -->
{{SubContentTemplate|<translate>Managing Snaps via Gnome Software</translate>|2=
{{SubContentTemplate|<translate><!--T:14--> Managing Snaps via Gnome Software</translate>|2=
{{FlexSideContainerTemplate|[[File:Gnomesoftware.png|400px]]|
{{FlexSideContainerTemplate|[[File:Gnomesoftware.png|400px]]|
<translate>
<translate>
<!--T:15-->
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:
</translate>
</translate>
{{UserCmd|command=pamac install gnome-software-snap}}
{{UserCmd|command=pamac install gnome-software-snap}}
<translate>
<translate>
<!--T:16-->
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>
</translate>
{{tip|<translate>Gnome Software can also install and update software from the Manjaro repos</translate>}}
{{tip|<translate><!--T:17--> Gnome Software can also install and update software from the Manjaro repos</translate>}}
}}
}}
|4=1}}
|4=1}}
}}
}}


{{SectionTemplate|<translate>Managing Snaps via the CLI</translate>|2=
{{SectionTemplate|<translate><!--T:18--> Managing Snaps via the CLI</translate>|2=
<!-- sub 1 -->
<!-- sub 1 -->
{{SubContentTemplate|<translate>Finding and Installing Snaps</translate>|
{{SubContentTemplate|<translate><!--T:19--> Finding and Installing Snaps</translate>|
<translate>
<translate>
<!--T:20-->
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:
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>
</translate>
Line 79: Line 90:
   
   
<translate>
<translate>
<!--T:21-->
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
</translate>
</translate>
{{UserCmd|command=snap install vlc}}
{{UserCmd|command=snap install vlc}}
<translate>
<translate>
<!--T:22-->
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>
</translate>
Line 88: Line 101:


<!-- sub 2 -->
<!-- sub 2 -->
{{SubContentTemplate|<translate>Displaying Detailed Snap Information</translate>|
{{SubContentTemplate|<translate><!--T:23--> Displaying Detailed Snap Information</translate>|
<translate>
<translate>
<!--T:24-->
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>
</translate>
Line 118: Line 132:
|4=1}}
|4=1}}
<!-- sub 3 -->
<!-- sub 3 -->
{{SubContentTemplate|<translate>Getting a list of installed Snaps</translate>|
{{SubContentTemplate|<translate><!--T:25--> Getting a list of installed Snaps</translate>|
<translate>
<translate>
<!--T:26-->
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:
</translate>
</translate>
Line 127: Line 142:
<!-- sub 4 -->
<!-- sub 4 -->


{{SubContentTemplate|<translate>Removing Snaps</translate>|
{{SubContentTemplate|<translate><!--T:27--> Removing Snaps</translate>|
<translate>
<translate>
<!--T:28-->
You can remove Snaps with the command {{ic|snap remove}}.  For example:
You can remove Snaps with the command {{ic|snap remove}}.  For example:
</translate>
</translate>
Line 136: Line 152:
<!-- sub 5 -->
<!-- sub 5 -->


{{SubContentTemplate|<translate>Removing Snap Support</translate>|
{{SubContentTemplate|<translate><!--T:29--> Removing Snap Support</translate>|
<translate>
<translate>
<!--T:30-->
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.


<!--T:31-->
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.
</translate>
</translate>
{{UserCmd|command=pamac list -i | grep snap}}
{{UserCmd|command=pamac list -i | grep snap}}
<translate>
<translate>
<!--T:32-->
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:
</translate>
</translate>
Line 149: Line 168:


<translate>
<translate>
<!--T:33-->
Next, remove snapd itself
Next, remove snapd itself
</translate>
</translate>
Line 154: Line 174:


<translate>
<translate>
<!--T:34-->
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.
</translate>
</translate>