Skip to content

Instantly share code, notes, and snippets.

@werty1st
Created August 1, 2013 14:49
Show Gist options
  • Save werty1st/6132100 to your computer and use it in GitHub Desktop.
Save werty1st/6132100 to your computer and use it in GitHub Desktop.
Create a backup of what packages are currently installed
Create a backup of what packages are currently installed:
sudo dpkg --get-selections > list.txt
Then (on another system) restore installations from that list:
sudo dpkg --clear-selections
sudo dpkg --set-selections < list.txt
To get rid of stale packages
sudo apt-get autoremove
To get installed like at backup time
sudo apt-get dselect-upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment