From andrew@farwestbilliards.com Mon Oct 5 07:35:36 2009 Path: diesel.cu.mi.it!newerode.bofh.it!news.nic.it!robomod From: Andrew Sackville-West Newsgroups: linux.debian.user Subject: Re: Installing app list on a new dist Date: Mon, 05 Oct 2009 02:10:05 +0200 Message-ID: References: X-Original-To: debian-user@lists.debian.org Old-Return-Path: X-Amavis-Spam-Status: No, score=-12 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, PGPSIGNATURE=-5] autolearn=ham X-Policyd-Weight: using cached result; rate: -5 X-Greylist: delayed 1702 seconds by postgrey-1.31 at liszt; Mon, 05 Oct 2009 00:02:03 UTC Mail-Followup-To: debian-user@lists.debian.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2E/hm+v6kSLEYT3h" Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam_Score: -1.4 X-Spam_Score_Int: -13 X-Spam_Bar: - X-Mailing-List: archive/latest/560629 List-ID: Approved: robomod@news.nic.it Lines: 95 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 4 Oct 2009 16:33:14 -0700 X-Original-Message-ID: <20091004233313.GG26645@localhost.localdomain> X-Original-References: <1254685257.2742.57.camel@zefram.soho.lan> Xref: diesel.cu.mi.it linux.debian.user:401521 X-IMAPbase: 1262522294 1 Status: O X-Status: X-Keywords: X-UID: 1 --2E/hm+v6kSLEYT3h Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 04, 2009 at 12:40:57PM -0700, Bill wrote: > Hi folks, >=20 > About a month ago there was a thread entitled "Installed list of > Apps" concerning the right way to duplicate installed apps on one > box to another.=20 >=20 > Johan Gronquist suggested: > dpkg --get-selections > dpkg --set-selections > http://ubuntuforums.org/showthread.php?t=3D169062 this method will give every installed package >=20 > Oumar Niane suggested: > $ aptitude -F "%p" search '~i!~M' > package_list > $ aptitude install < package_list > and pointed out that: > With [the other] method, you loose the flag for packages that=20 > were automatically installed. this method gives only manually installed packages. automatically installed packages will be brought in, well, automatically. >=20 > OK so my situation is somewhat different. I wish to install=20 > the packages from a sarge install to a fresh install of lenny > and keep the list of installed packages more or less the same. > If lenny upgrades the package then I'd prefer to use the newer > version rather than install an older version. I don't want to=20 > "loose" all the extra packages I've installed on sarge by moving=20 > to a fresh install. >=20 > So in testing the two methods, the dpkg list is 1923 lines long > including 73 "deinstalled" lines, whereas the aptitude method is=20 > 1276 lines long.=20 this makes sense. only a subset of installed packages were explicitly installed. the others were brought in automatically. >=20 > So I have two questions: > 1. Why is there such a substantial discrepancy between the two > methods and which method would be preferable? hopefully that is already clear from the above. > 2. What about discrepancies between versions? Many lines include > a version number. Will I wind up with older package versions or=20 > will it be upgraded to the lenny version? How can I get around > that if necessary? I think to make this work you'd want to manually go over the list. Jumping two versions like that will leave you trying to install packages that just don't exist anymore.=20 definitely, whichever method you use, I would remove any packages that start with lib, and review the whole thing manually. Also, spend some time decrufting the system before producing the lists. deborphan is your friend here.=20 in the end, there may not really be any good way to do this automatically unless you want to script up something to parse the list and check against the apt-cache to see if they exist, throwing out the ones that fail.' hth A --2E/hm+v6kSLEYT3h Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkrJMLkACgkQaIeIEqwil4bLSwCgxLTViQGrvsH6MktY1RkCdZmc bFQAoLlqFu2q9yhhqbd4TfsgL5fzWlMc =nK++ -----END PGP SIGNATURE----- --2E/hm+v6kSLEYT3h-- -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org