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?)
Best Answer
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:
/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 usingsudo dpkg -i *.deb
A second option if the previous step doesn't find anything would be to create the .deb for your current system, on console type:
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