Make copies of installed snaps

Is there a way to copy snap packages from one pc to another.
I have at least 5 Ubuntu installs not counting VMs and rather than download the same snap 5 times is it possible to copy a snap to USB storage and install on the other PCs?

There is a way!

snap download app

Which will download a .snap and an .ack file. You can copy them and install them on other machines.

sudo snap ack app.assert
sudo snap install app.snap

Or if you don’t want to deal with the .ack file you can pass the --dangerous flag. So sudo snap install /path/to/file.snap --dangerous

1 Like

No, but you could copy the .snap file from /var/lib/snapd/snaps and the associated .assert file from /var/lib/snapd/assertions/asserts-v0/snap-declaration then do snap ack (file).assert, and then snap install (file).snap.

This defeats the object of the question of copying from one machine to another. if you snap download, then you’re going to re-download the snap file you already have, as well as the assert file.

That doesn’t seem wise. You’ll break updates for those snaps.

If you want to keep data around and copy it over as well from one machine to the other, take a look at the built in backup feature of snaps via snap save and snap restore commands (see snap help for even more commands around snapshots/backups for user data)

1 Like

The real problems is not the installation. The updates - or refresh, as it’s called in the snap documentation - are the real problem, especially for big and often updated snaps like Firefox. A caching proxy like squid might be helpful …

Snaps are not Ubuntu-exclusive. Snap is a Canonical product and not an Ubuntu project.

You would be better served with this question by posting on https://forum.snapcraft.io.

You mean like the one that exists since ages ?

https://documentation.ubuntu.com/enterprise-store/main/

:slight_smile:

Thanks for all the replies.
There are a couple of suggestions that i will investigate further.

1 Like

Hi popey, I have copied a firefox_7024.snap file that I wish to install on other PCs to a folder on a USB drive. I found a file called active.5 in a folder called 3wdHCAVyZEmYsCMFDE9qt92UV8rC8Wdk which seems to be related.
Can you please give me more guidance as of what to do next?

This topic was automatically closed after 30 days. New replies are no longer allowed.