Last active
September 30, 2015 22:17
-
-
Save fduran/1870463 to your computer and use it in GitHub Desktop.
Linux cloning packages (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
# Linux cloning packages (for Debian/Ubuntu -type) | |
# in server of origin: | |
dpkg --get-selections > packages.txt | |
# in destination server: | |
dpkg --set-selections < packages.txt | |
apt-get -u dselect-upgrade | |
# most packages will work even if destination server is newer distro version | |
# After installing packages files can be copied from origin to destination with rsync or scp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment