Results 1 to 1 of 1

Thread: HOW-TO preserve installed packages between multiple debian computers

  1. #1
    Join Date
    Mar 2009
    Beans
    1

    Lightbulb HOW-TO preserve installed packages between multiple debian computers

    If you're reading this, you are probably migrating or thinking about migrating to a new computer. This method, as the title suggests, preserves installed packages between multiple computers, allowing you to (a) upgrade more easily and (b) save space on backups. This does, however, require perl, so make sure you've got that first. You can use any folder you'd like, but I will assume you are using your home folder.

    Run this command:
    Code:
    dpkg -l|egrep ^ii|perl -e 'print "#!/bin/bash\n";while(<STDIN>){$_=~ m/ii *(\S*)/;print "apt-get install $1\n";}'>~/pklist.sh
    Conclusion
    pklist.sh now contains a shell script that when transferred to a new computer and run as root, will reinstall everything.

    Note: If you have removed packages that come with ubuntu by default, your new computer will not reflect those changes. Sorry!

    -Nick_Ninja
    Last edited by nick_ninja; March 25th, 2009 at 12:19 AM. Reason: shell script mistake

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •