[balug-talk] cloning a Debian installation

Will Lowe harpo at thebackrow.net
Fri Dec 8 00:39:51 PST 2006


On the source machine:

dpkg --list '*' > file.list

Copy file.list and /etc/apt/sources.list to the target machine,  and then:

dpkg --set-selections < file.list
apt-get -u dselect-upgrade

On Fri, Dec 08, 2006 at 12:25:02AM -0800, Joe Brenner wrote:
> 
> What's your favorite method for duplicating a Debian (or Debian-based)
> installation from one machine on to another?  
> 
> At the moment I'm just looking for a way to get a listing of installed 
> packages on one box, and using that list to install packages on another...
> 
> And I've been playing around with the "wajig" program, which provides a
> reasonably convenient command-line interface (a little better than
> aptitude, to my eye): 
> 
>   http://www.togaware.com/wajig
> 
> So on the machine to be cloned, I might do this:
> 
>   wajig snapshot > /tmp/packages_with_versions.lst
>   cat packages_with_versions.lst | cut -d= -f1 > packages.lst
> 
> Then, after copying packages.lst to the target machine, I might 
> just do something like this: 
> 
>   su 
>   cat packages.lst | xargs apt-get -y install
> 
> Does that sound about right?  
> 
> _______________________________________________
> balug-talk mailing list
> balug-talk at lists.balug.org
> http://lists.balug.org/listinfo.cgi/balug-talk-balug.org

-- 
        Will


More information about the balug-talk mailing list