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

Re: how can i copy my pkg choices to another machine?



High,

On Sun, 12 Aug 2001, Chris Palmer wrote:

> Hi, guys...
> 
> I've been running debian for years, but only on a couple
> machines until recently.  Now, I'm setting up a new machine 
> to replace one of my other machines and wanted to clone the
> choices for packages to have installed and then have apt-get
> get everything downloaded and installed for me the way I
> have it on the other machine.
> 
> I've found some files under /var/lib/dpkg that contain
> status of packages, but I don't think I'm fully on the
> right track.
> 
> I've used both dselect and apt-get and am leaning towards
> using apt-get for all my package needs these days.
> 
> Any advice on how I can do this would be great, as it would
> be a pain to go through the packages one-by-one and flag
> them (in dselect)...  :)
> 
I do not know if will work, but this is the idea:
On the source computer:
dpkg --get-selections > source

On the destination computer (after you copied the file 'source' to it
;-)):
cat source | dpgk --set-selections

The I think you should run 'apt-get -f install' to install the uninstalled
packages. But you still have to configure them one by one.

Greetz,
Sebastiaan




Reply to: