R
ecovery
A quick way of backing up a list of programs is to run this:
dpkg --get-selection s > ~/Package.list
sudo cp /etc/apt/source s.list ~/sources.list
sudo apt-key exportall > ~/Repo.keys
A quick way of backing up a list of programs is to run this:
dpkg --get-selection
sudo cp /etc/apt/source
sudo apt-key exportall > ~/Repo.keys
***********
It will back them up in a format that dpkg can read for after your reinstall, like this:
sudo apt-key add ~/Repo.keys
sudo cp ~/sources.list /etc/apt/source s.list
sudo apt-get update
sudo apt-get install dselect
sudo dpkg --set-selection s < ~/Package.list
sudo apt-get dselect-upgrade -y
sudo apt-key add ~/Repo.keys
sudo cp ~/sources.list /etc/apt/source
sudo apt-get update
sudo apt-get install dselect
sudo dpkg --set-selection
sudo apt-get dselect-upgrade -y