[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?



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

-- 
Mark Janssen -- maniac(at)maniac.nl -- GnuPG Key Id: 357D2178
Unix / Linux, Open-Source and Internet Consultant @ SyConOS IT
Maniac.nl Unix-God.Net|Org MarkJanssen.org|nl SyConOS.com|nl



Reply to: