Skip to content

Instantly share code, notes, and snippets.

@fduran
Last active September 30, 2015 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fduran/1870463 to your computer and use it in GitHub Desktop.
Save fduran/1870463 to your computer and use it in GitHub Desktop.
Linux cloning packages (Debian/Ubuntu)
# 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