Ubuntu Snap: Difference between revisions

From FreeCAD Documentation
No edit summary
(Wiki code: added some blank lines.)
Line 2: Line 2:
{{TOCright}}
{{TOCright}}
<translate>
<translate>

== Introduction == <!--T:1-->
== Introduction == <!--T:1-->


Line 27: Line 28:
<!--T:8-->
<!--T:8-->
For Debian/Ubuntu and similar systems which use the APT manager the daemon is installed as follows:
For Debian/Ubuntu and similar systems which use the APT manager the daemon is installed as follows:

</translate>
</translate>
{{Code|lang=bash|code=
{{Code|lang=bash|code=
Line 35: Line 37:
<!--T:9-->
<!--T:9-->
To install the stable version of the Snap use:
To install the stable version of the Snap use:

</translate>
</translate>
{{Code|lang=bash|code=
{{Code|lang=bash|code=
Line 43: Line 46:
<!--T:10-->
<!--T:10-->
To install the development version of the Snap use:
To install the development version of the Snap use:

</translate>
</translate>
{{Code|lang=bash|code=
{{Code|lang=bash|code=
Line 53: Line 57:
<!--T:15-->
<!--T:15-->
To install the stable version of the Snap use:
To install the stable version of the Snap use:

</translate>
</translate>
{{Code|lang=bash|code=
{{Code|lang=bash|code=
Line 58: Line 63:
}}
}}
<translate>
<translate>

<!--T:16-->
<!--T:16-->
To install the development version of the Snap use:
To install the development version of the Snap use:

</translate>
</translate>
{{Code|lang=bash|code=
{{Code|lang=bash|code=
Line 70: Line 77:
<!--T:18-->
<!--T:18-->
* Figuring out what development version is installed type the following in the Command-line interface
* Figuring out what development version is installed type the following in the Command-line interface

</translate>
</translate>
: {{Code|lang=bash|code=
: {{Code|lang=bash|code=
Line 80: Line 88:
<!--T:20-->
<!--T:20-->
The following commands are geared for users that are familiar with git and have a locally cloned repository of upstream FreeCAD repository.
The following commands are geared for users that are familiar with git and have a locally cloned repository of upstream FreeCAD repository.

</translate>
</translate>
: {{Code|lang=bash|code=
: {{Code|lang=bash|code=
Line 89: Line 98:
<!--T:21-->
<!--T:21-->
* Find out the latest upstream revision number (also known as 'HEAD').
* Find out the latest upstream revision number (also known as 'HEAD').

</translate>
</translate>
: {{Code|lang=bash|code=
: {{Code|lang=bash|code=
Line 97: Line 107:
<!--T:22-->
<!--T:22-->
* Translate the current snap development version in to a revision number. Make sure you're within your FreeCAD cloned repository (as mentioned above).
* Translate the current snap development version in to a revision number. Make sure you're within your FreeCAD cloned repository (as mentioned above).

</translate>
</translate>
: {{Code|lang=bash|code=
: {{Code|lang=bash|code=
Line 116: Line 127:
* [[AppImage|AppImage]] - another self-contained 'binary' like format to run FreeCAD
* [[AppImage|AppImage]] - another self-contained 'binary' like format to run FreeCAD
* [[Flatpak|Flatpak]]
* [[Flatpak|Flatpak]]



</translate>
</translate>

Revision as of 18:39, 24 December 2021

Introduction

An Ubuntu Snap package, or just Snap is a distribution format similar to AppImage in that it is intended to be a "universal installable package" to deploy software in Linux systems. Snaps were introduced by Ubuntu but they are intended to run in all Linux distributions as long as the Snap daemon, or snapd, is available in the target system.

A Snap package has two main characteristics:

  • Programs are sandboxed so they do not interfere with the rest of your operating system.
  • Programs are updated automatically in the background in order to get the newest version of the application.

For other ways of installing the software, see Installing on Linux.

Installation

As of v0.19 the use of Snaps is experimental. The current Snaps are generated and hosted by volunteers.

In all systems where Snaps are to be installed, the Snap daemon must be installed first. The package is normally called snapd.

Debian/Ubuntu

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

sudo apt install snapd

To install the stable version of the Snap use:

sudo snap install freecad

To install the development version of the Snap use:

sudo snap install --edge freecad-ppd

Manjaro

To install the stable version of the Snap use:

snap install freecad

To install the development version of the Snap use:

snap install --edge freecad-ppd

Notes

  • Figuring out what development version is installed type the following in the Command-line interface
snap info freecad-ppd

Advanced mode

The following commands are geared for users that are familiar with git and have a locally cloned repository of upstream FreeCAD repository.

git clone https://github.com/FreeCAD/FreeCAD
cd FreeCAD/
  • Find out the latest upstream revision number (also known as 'HEAD').
git rev-list --count HEAD
  • Translate the current snap development version in to a revision number. Make sure you're within your FreeCAD cloned repository (as mentioned above).
snap info freecad-ppd | grep -e '^installed:' | awk -F ' ' '{ print $2 }' | cut -d'~' -f2 | xargs -I{} git rev-list --count {}
  • The difference between the numbers will tell you have many revisions behind upstream the snap development (edge) is.

Links

More information about current efforts to deal with Snaps.

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