Home > Software > How to easily keep your Ubuntu packages in sync

How to easily keep your Ubuntu packages in sync

Thanks to Monty, I've learned something that will save me a lot of headache in the future. I had a bunch of random scripts I wrote myself to try to keep things in sync, turns out most of the work is already all done for me.

On the source host you want to clone:

dpkg --get-selections > file

On the destination host:

dpkg --set-selections < file
apt-get dselect-upgrade

Now your machines should be identical, package-wise.

Categories: Software
  1. till
    August 1st, 2009 at 12:20 | #1

    Haha, that's an awesome trick. 🙂

  1. No trackbacks yet.
You must be logged in to post a comment.