I have an Ubuntu 16.04 installation with a set of snap directories in /snap/
. As I upgrade to Ubuntu 20.04, can I expect to be able to copy these snap directories directly into a corresponding /snap/
directory on 20.04 and have them work?
Would I need to do anything else to make it work? Or is this completely unworkable, and I'm going to need to reinstall all the snaps on the new 20.04 system?
It's a waste of time to copy snap directories. Snaps are not merely a bunch of files; they are files that are placed, configured, and managed by snapd.
Use the
snap
command to properly install/uninstall.Snaps are release-independent and constantly updated (those are key advantages of them). It doesn't matter which release of Ubuntu you are using. It doesn't matter which release you are migrating to (or reinstalling). There's only one current version of snap for your channel, and everybody get it.
Snaps are unaffected by deb-based
do-release-upgrade
ordist-upgrade
. That means old snaps are not removed, new snaps are not added (exception: A set of packages converting from deb to snap), and existing snaps are updated only by coincidence.snap list
to see which snaps you currently have installed so you know what to reinstall.