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

Re: my system packages list



On Fri, Oct 03, 2008 at 10:16:01 +0200, François Cerbelle  wrote:
> Le Ven 3 octobre 2008 08:52, Pol a écrit :
> > I would like to install on a new station the same applications currently
> installed on my laptop.
> > Any hints to run a script?
> 
> Hi Pol,
> 
> You can use "dpkg --get-selections > packages.lst" to get the installed
> packages and "dpkg --set-selections < packages.lst && apt-get update &&
> apt-get dselect-upgrade" to install the same package list...
> 
> But :
> 1 - check the command and Options, I did not use it for a long time and it
> might have changed ;
> 2 - you will loose the benefit of aptitude (the flag "auto installed") on
> you new install

You can save the list of automatically installed packages on the old
system:

aptitude -F '%p' search '~M' > auto-packages.txt

Then this should work on the new system:

aptitude markauto $(cat auto-packages.txt)

> 3 - Do not forget to use the same sources in the /etc/apt/sources.list

-- 
Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |


Reply to: