> cat my-pkg-list > dpkg --set-selections I haven't used the feature in question, but that doesn't look right... Did you mean: cat my-pkg-list | dpkg --set-selections