Advertisement
fduran

Linux cloning packages (Debian/Ubuntu)

Apr 21st, 2011
448
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.42 KB | None | 0 0
  1. # Linux cloning packages (for Debian/Ubuntu -type)
  2.  
  3. # in server of origin:
  4. dpkg --get-selections > packages.txt
  5.  
  6. # in destination server:
  7. dpkg --set-selections < packages.txt
  8.  
  9. #You may need to do:
  10. apt-get install dselect
  11. apt-get dselect-upgrade
  12.  
  13. # most packages will work even if destination server is newer distro version
  14.  
  15. # After installing packages files can be copied from origin to destination with rsync or scp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement