[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: HOW DO I: Copy the package list from one machine, and install it on another machine?



Mark Janssen wrote:
On Sat, 2003-02-22 at 11:35, Andrew Pritchard wrote:

I've got one debian box, and I want to duplicate the package list onto
another machine - how do I go about doing this?

I've done a dpkg -l to get a list of files from the first machine. It's
got a whole load of extra information (package version no. etc) which I've
filtered out. How can I get apt to recognise the contents of the file as
being a list of packages to install? Is there a better tool for the job?


Source machine:
dpkg --get-selections > /tmp/some-file.txt

Dest machine:
dpkg --put-selections < /tmp/some-file.txt

--put-selections doesn't seem to be in the man page.
There's a --set-selections, but it says that does
nothing to actually do installing.



Reply to: