How to restore the applications installed in your distribution

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


A comment, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Solid Rugs Pacheco said

    excellent, very useful right now that Mint 14 is coming up, thanks