Created
August 1, 2013 14:49
-
-
Save werty1st/6132100 to your computer and use it in GitHub Desktop.
Create a backup of what packages are currently installed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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