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

Re: Moving Package List



On Fri, 2004-05-28 at 15:57, Sam Halliday wrote:
> hello,
> 
> i know this is probably somthing which is discussed often on the list... but i
> was unable to find anything in the archives, the apt FAQ or several google
> searches... so i'm posting to the list.
> 
> i have a machine running Debian GNU/Linux testing/unstable with a package list i
> am very happy with. i would like to move this configuration to another machine
> which i am performing a fresh install on. how can i get a list of all the
> packages on this system and how can i read that info into the new one?
> 
> also... can i keep the aptitude package states? it seems a bit of a hack, and
> cause all kinds of hell if i were to just copy over /var/lib/aptitude/pkgstates

Current machine perform this:

   dpkg --get-selections > oldmachine.pkgs

Move the file oldmachine.pkgs to the New Machine

New machine perform this:

   dpkg --set-selections < oldmachine.pkgs

then:

   apt-get dselect-upgrade

All should be well.
-- 
greg@gregfolkert.net
REMEMBER ED CURRY! http://www.iwethey.org/ed_curry

Novell's Directory Services is a competitive product to Microsoft's
Active Directory in much the same way that the Saturn V is a competitive
product to those dinky little model rockets that kids light off down at
the playfield. -- Thane Walkup

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: