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

Re: dselect selection



On Mar 21, tgakem@chem.tue.nl wrote
> I want to install debian on different PC's using  same  selection of
> packages  for each PC.  Is it possible if I have one PC fully configured
> to take its list of  installed  packages  and  install these  on  a
> second  pc, whithout having to go through the whole list with dselect
> again?  I'm currently using the debian  release on the recent Infomagic
> CD-ROM set (the green one).

This has been discussed on this list before, but I don't recall the
suggestions; check the archives or dejanews (linux.debian.user).

I suspect that you can do it like this: [note: I have never done this, I
just took a look at dpkg's options]
[on "mother" machine A]
	dpkg --get-selections  > thelist
[on "child" machine B]
	dpkg --set-selections < thelist
	dselect
	install

Additionally, you'll probably want to reuse your configuration files, so
something like
	cd / ; tar cvf conffiles.tar `cat /var/lib/dpkg/info/*conffiles`
and delete host-specific conffiles (e.g. /etc/hostname) from that.

HTH,
Ray
-- 
J.H.M. Dassen                 | RUMOUR  Believe all you hear. Your world may  
jdassen@wi.LeidenUniv.nl      | not be a better one than the one the blocks   
                              | live in but it'll be a sight more vivid.      
                              |     - The Hipcrime Vocab by Chad C. Mulligan  


Reply to: