[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?

Neal Lippman wrote:

Now, using either of the above package lists, you can do:
	for pkg in $(cat package-listing-from-xxx);
		apt-get install $pkg;
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


Attachment: pgpSasmk49lBf.pgp
Description: PGP signature

Reply to: