It is very common that when a new version of our favorite Linux distribution comes out, we rush to download and install it on our PC. The vast majority of them offer ways to update to the current version without having to format the machine, but these updates do not always produce stable installations.
If you are like me, you prefer one clean installation of your distribution. In that case, the correct thing to do is keep your / home on a separate partition, so that you can install another operating system without losing your files. But what about the applications? How to make a Backup of them? |
It is also very simple. We prepare this tutorial for most Linux distributions. You just have to follow the following steps to save a backup of your applications and / or restore them on your system.
Debian/Ubuntu/Linux Mint
Backup
dpkg --get-selections> installed-software.log
Restore
dpkg --set-selections < installed-software.log apt-get dselect-upgrade
Arch Linux
Backup
pacman -Qqe | grep -v "$ (pacman -Qmq)"> pkglist
Restore
pacman -S $ (cat pkglist)
Fedora
Backup
rpm -qa> installed-software.bak
Restore
yum -y install $ (cat installed-software.bak)
Gentoo
Backup
cp / var / lib / portage / world installed-software.bak
Restore
cat installed-software.bak | xargs -n1 emerge -uv
OpenSuse
Backup
rpm -qa --queryformat '% {NAME}'> installed-software.bkp
Restore
sudo zypper install $ (cat installed-software.bak)
Source: Seja Free
excellent, very useful right now that Mint 14 is coming up, thanks