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

This site uses Akismet to reduce spam. Learn how your comment data is processed.