1. Nicolas S

    dpkg has a integrated service to provide such a replication.

    You can get a list of installed packages, with option "--get-selections" and set the list to install with option "--set-selections".

    So to replicate an installation you may want to use : "dpkg --get-selections > installed.txt" on the first host and "dpkg --set-selections < installed.txt"

    If you want, you can still add a command to dpkg --get-selections to filter some package as you did.

    • Linerd

      @Nicolas - Thanks for the tip! This is what I love about blogging. Post a solution to a problem and someone leaves a comment with an even better way!


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>