I see a few solutions that do dpkg list or something along that line, Store it in a file and use that file to install the apps. My question is - will it also backup all the apps I installed from the snap store (Since I am having to install them using sudo snap install?)

Is there a better way I can back up all my apps, so I can get them installed on a new machine when I move to the machine? (Installed using APT OR Snap?)


For snaps I think a Snapshot is the way to go.

For normal apt(.deb) software packages installed on your machine I think you could try these options:

  1. Check your apt archive directory(/var/cache/apt/archives) to see if this contains any .deb file. Those .deb are the software package from the applications you have in your system. If so, copy these .deb file to a USB stick from example, restore them on the new machine and once these files are on the new machine install them using sudo dpkg -i *.deb
  2. A second option if the previous step doesn't find anything would be to create the .deb for your current system, on console type:

    sudo apt-get install dpkg-repack
    mkdir repack
    cd repack
    dpkg-repack `dpkg --get-selections | grep install | cut -f1` 

The above commands will create the .deb files from your current installed system in the repack directory, from there you could copy these file to an USB stick, then restore them on the new machine, and again, perform an sudo dpkg -i *.deb on the new machine to install these deb applications in there


I am the person who posted this quesiton. Really helpful with the snap save. For the people who are more noob than me (if that is possible), what I've done is

  1. I did sudo snap save, this will generate a list of snaps - usually with a preceding ID (Say 12_APP.ZIP, 12_APP2.zip) and this number will increment everytime you take a new snap save.

    You can do mv /var/log/snapd/snapshots/12_*.zip DEST_FOLDER

  2. Back it up to cloud or a disk.

  3. Move it back to mv 12*.zip /var/log/snapd/snapshots/ on your new machine and you can snap restore 12 on your new machine and TADA!

The synaptic idea by @Organiz Marble was also pretty great. Please do that too.

I've done dpkg --get-selections > package_list. More here - How can I backup my programs/applications, so that after I reinstall a new one, I can still use the backup-ed ones?

(it also backups your PPAs). Thanks, everyone. I hope whoever finds this in the future sees this answer and takes the best of whatever they like :)


For non-snaps:

You can use synaptic to save a list of all packages installed on your system through apt.

From the File menu select Save Markings As... and in the box that pops up, specify a storage location. Be sure to tick the Save full state, not only changes option in this box!

This saves a text file with all packages installed through apt. You can install them on the new system using synaptic by selecting from the File menu Read Markings...


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.