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

Re: Creating a new machine with the same set of packages as an existing one?



On Sun, Oct 12, 2003 at 09:14:08PM -0400, Roberto Sanchez wrote:
> Neal Lippman wrote:
> >Now, using either of the above package lists, you can do:
> >	for pkg in $(cat package-listing-from-xxx);
> >	do
> >		apt-get install $pkg;
> >	done
> >which will work although not be the most efficient way (because you will
> >have to run apt-get for each package, and hence dependences are
> >re-resolved over and over, or:
> 
> Better way:
> 
> (after adjusting sources.list)
> 
> apt-get update
> dpkg --set-selections <package-listing-from-xxx
> apt-get upgrade

I believe that --set-selections only actually has an effect if you do
'apt-get dselect-upgrade' (or 'dselect install', less circuitously).
'apt-get upgrade' uses apt's own upgrading logic rather than what you
selected.

Cheers,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: