Re: Creating a new machine with the same set of packages as an existing one?
On Sun, 2003-10-12 at 21:14, 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
>
>
Yes, of course. Dumb of me to use --get-selections without also using
--set-selections. Doh.
Reply to: