Un Ubuntu Snap paquete, o simplemente Snap es un formato de distribución similar a AppImage en el que se pretende que sea un "paquete instalable universal" para desplegar software en sistemas Linux. Los Snaps fueron introducidos por Ubuntu pero están pensados para ejecutarse en todas las distribuciones de Linux siempre y cuando el demonio Snap, o snapd
, esté disponible en el sistema objetivo.
Un paquete de Snap tiene dos características principales:
Para otras formas de instalar el software, vea Instalación en Linux.
A partir del v0.19 el uso de Snaps es experimental. Los Snaps actuales son generados y alojados por voluntarios.
En todos los sistemas donde se instalen Snaps, el demonio Snap debe ser instalado primero. El paquete se llama normalmente snapd
.
Para Debian/Ubuntu y sistemas similares que utilizan el gestor APT el demonio se instala de la siguiente manera:
sudo apt install snapd
Para instalar la versión estable del Snap use:
sudo snap install freecad
Para instalar la versión de desarrollo del Snap use:
sudo snap install --edge freecad
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
To figure out which development version is installed type the following in the Command-line interface:
snap info freecad
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):
snap refresh freecad --channel=latest/edge/toponaming
Using the refresh
command will switch and update the snap channel you're switching to:
snap refresh freecad --channel=latest/edge/toponaming
Toggling back to the nightly 'edge' channel:
snap refresh freecad --channel=latest/edge
The following commands are geared towards users that are familiar with git
and have a locally cloned repository of the upstream FreeCAD repository.
git clone https://github.com/FreeCAD/FreeCAD
cd FreeCAD/
To find out the latest upstream revision number (also known as 'HEAD'):
git pull upstream master # first make sure we have the most up-to-date commits
git rev-list --count HEAD # 'HEAD' refers to the current commit you are viewing (tip of the master branch)
To translate the current snap development version in to a revision number (make sure you're within your cloned FreeCAD repository as mentioned above):
snap info freecad |\
grep -e '^\s\+latest/edge' |\
awk -F ' ' '{ print $2 }' |\
xargs -I{} git rev-list --count {}
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:
snap info freecad |\
grep -e '^\s\+latest/edge' |\
awk -F ' ' '{ print $2 }' |\
xargs -I{} git log --oneline --ancestry-path {}..HEAD
Note: The output will indicate what commits are not in the current 'edge' (but will be on the next nightly update).
Más información sobre los esfuerzos actuales para tratar con Snaps.