D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Combining servers?

 

Grant Sewell wrote:
> Mark D. Thurston wrote:
> Is there any way to list
> what packages are currently installed on a Debian system, and use those 
> lists again as a means to re-install the relevant packages? 

$ dpkg -l | grep ii > packages.txt

> Could I 
> simply copy the /etc directory (and relevant other directories) once 
> this is done?

Not always, only certain files would transfer OK. Various hardware
differences and differences in networking config are likely to differ
considerably (and cause a right mess if you overwrite them). Don't
forget that apt-get (via dpkg) will setup the majority of the
configuration for you, you don't want to overwrite that with config from
a different machine.

-- 

Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/


Attachment: signature.asc
Description: OpenPGP digital signature

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html