Created
March 13, 2017 08:58
-
-
Save ugurk/84439a79850a8357e22c2574e34f7249 to your computer and use it in GitHub Desktop.
Backup and restore packages in Debian & Ubuntu
This file contains 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
sudo dpkg --get-selections > /tmp/dpkglist.txt |
This file contains 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
sudo dpkg --set-selections < /tmp/dpkglist.txt | |
sudo apt-get -y update | |
sudo apt-get dselect-upgrade |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment