Ubuntu Snap/it

Introduzione
Un pacchetto Ubuntu Snap, o semplicemente Snap è un formato di distribuzione simile a AppImage in quanto è inteso come un "pacchetto installabile universale" su cui distribuire software Sistemi Linux. Gli snap sono stati introdotti da Ubuntu ma sono pensati per essere eseguiti su tutte le distribuzioni Linux purché il demone Snap, o, sia disponibile sul sistema di destinazione.

Un pacchetto Snap ha due caratteristiche principali:
 * I programmi sono sandbox in modo da non interferire con il resto del sistema operativo.
 * I programmi vengono aggiornati automaticamente in background per ottenere la versione più recente dell'applicazione.

Per altri modi di installazione del software, vedere Installazione su Linux.

Installazione
L'uso di Snaps è sperimentale. Gli Snap attuali sono generati e ospitati da volontari.

Su tutti i sistemi in cui devono essere installati gli Snap, è necessario installare prima il demone Snap. Il pacchetto normalmente si chiama.

Debian/Ubuntu
For Debian/Ubuntu and similar systems which use the APT manager the daemon is installed as follows:

To install the stable version of the Snap use:

To install the development version of the Snap use:

Manjaro
To install the stable version of the Snap use:

To install the development version of the Snap use:

What FC version am I running
To figure out which development version is installed type the following in the Command-line interface:

Changing between different Snaps
Starting from the tail end of the v0.20 release cycle, the FreeCAD snap maintainers added the ability to test experimental FreeCAD builds. Snaps allow for this by easily toggling between different snaps (terminology is 'channels or tracks'). For example:

Testing the Topological Naming ('toponaming') branch (created at the start of the v0.21/v1.0 release cycle):

Using the command will switch and update the snap channel you're switching to:

Toggling back to the nightly 'edge' channel:

Advanced
The following commands are geared towards users that are familiar with and have a locally cloned repository of the upstream FreeCAD repository.

To find out the latest upstream revision number (also known as 'HEAD'):

To translate the current snap development version in to a revision number (make sure you're within your cloned FreeCAD repository as mentioned above):

\ grep -e '^\s\+latest/edge'

Note: the above bash script 1 liner assumes user has 'edge' (nightly) installed

The difference between HEAD and the snap edge revision numbers indicates the amount of revisions trailing behind upstream the snap development (edge) is.

Taking it a step further, if you want a short summary of the commits between the current snap edge and HEAD:

\ grep -e '^\s\+latest/edge'

Note: The output will indicate what commits are not in the current 'edge' (but will be on the next nightly update).

Links
More information about the current efforts to deal with Snaps:
 * 0.19 Snap Preview needs "testers", older Snap by . (deprecated)
 * Discussion: State of the snap (Snap Packaging), newer version of the Snap by . (deprecated)

Repositories

 * https://github.com/FreeCAD/FreeCAD-snap
 * https://snapcraft.io/freecad

Maintainer(s)

 * ppd (forum, github)
 * luzpaz (forum, github)

Related

 * AppImage - another self-contained 'binary' like format to run FreeCAD
 * Flatpak packages