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

Re: How to clone a system easily?



On Mon, Jan 22, 2001 at 04:15:52AM -0800, kmself@ix.netcom.com wrote:
> 
> My preference is to do a minimal base system installation, then run:
> 
>     $ dpgk --get-selections > file

     $ dpkg --get-selections \* > file 

will do a better job preserving the state of the old system, for
example if you removed things like nfsd and such, the latter will
cause it to be removed from the target system where the former will
not.  

> ...on the old system followed by
> 
>     $ dpkg --set-selections < file
>     $ apt-get update; apt-get upgrade

actually apt-get update && apt-get dselect-upgrade 

apt-get upgrade will only upgrade what is already installed, it won't
install packages marked for installation but not yet installed (from
the --set-selections command) 

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgpsIo5mpSDFY.pgp
Description: PGP signature


Reply to: