* Shri Shrikumar ([EMAIL PROTECTED]) [030714 07:36]:
> On Mon, 2003-07-14 at 15:07, Andrew Perrin wrote:
> > My office machine will be replaced next month. I'd like to make the new
> > machine be pretty much like the old one. Given that I can't actually move
> > the primary hard drive over, what's the best way to get the package list
> > straight? Should I back up all of /etc, do a basic net install, then do an
> > apt-get update; apt-get upgrade?
> 
> backup /etc, /home, /boot and perhaps some parts of /var
> 
> dpkg --get-selections >> packages
> 
> and on the new machine
> 
> cat packages | dpkg --set-selections

Hooray for the useless invocation of cat! =) Why not this one?

dpkg --get-selections | cat > packages?

Personally, I like this:

dpkg --get-selections | ssh new-machine dpkg --set-selections

Sorry to turn this into YAPSST (yet another pedantic shell syntax
thread).

good times,
Vineet
-- 
http://www.doorstop.net/
-- 
Microsoft has argued that open source is bad for business, but you
have to ask, "Whose business? Theirs, or yours?"        --Tim O'Reilly

Attachment: signature.asc
Description: Digital signature

Reply via email to