From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HcGUz-0002bu-AX for garchives@archives.gentoo.org; Fri, 13 Apr 2007 07:47:13 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l3D7jDq6007678; Fri, 13 Apr 2007 07:45:13 GMT Received: from desiato.localdomain (82-69-83-178.dsl.in-addr.zen.co.uk [82.69.83.178]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l3D7eGhl001642 for ; Fri, 13 Apr 2007 07:40:16 GMT Received: from hactar.digimed.co.uk (hactar.digimed.co.uk [192.168.1.2]) by desiato.localdomain (Postfix) with ESMTP id D657E4212 for ; Fri, 13 Apr 2007 08:40:15 +0100 (BST) Date: Fri, 13 Apr 2007 08:40:10 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Any consequences to package.mask'ing newer kernels? Message-ID: <20070413084010.11e0eea5@hactar.digimed.co.uk> In-Reply-To: <200704130212.05425.bo.andresen@zlin.dk> References: <20070331055510.GA29960@waltdnes.org> <200704130133.49396.bo.andresen@zlin.dk> <20070413005947.27416382@hactar.digimed.co.uk> <200704130212.05425.bo.andresen@zlin.dk> Organization: Digital Media Production X-Mailer: Claws Mail 2.8.1cvs93 (GTK+ 2.10.11; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_E3z1hQsAHrlMNU0QKSr/W+1"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Archives-Salt: 2bec2a52-4fb4-4ad3-ab86-5070dd8e0b86 X-Archives-Hash: a60cbe8e59a77cb127711cd4ea614fae --Sig_E3z1hQsAHrlMNU0QKSr/W+1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Fri, 13 Apr 2007 02:11:58 +0200, Bo =D8rsted Andresen wrote: > > equery --quiet --nocolor list --duplicates gentoo-sources | awk > > '{print $1}' | head -n -2 | xargs --no-run-if-empty emerge --unmerge > > &>/dev/null =20 >=20 > Out of interest: >=20 > 1) Why --duplicates (i.e. am I missing something ;). No idea, I wrote the script a couple of years ago, if I'd wanted to remember how it worked I'd have commented it. :) It was never intended for per review, just a quick hack top free up some disk space.=20 I originally used qpkg, but you're right that equery doesn't need --duplicates. > 2) Why the awk? Is there ever more than one column without --no-pipe ? I don't think so, but it doesn't hurt to leave it in. I used awk because the terminal output adds extra fields and I possibly didn't even bother to check whether they were still there when using a pipe. --=20 Neil Bothwick Q: Why is top-posting evil? A: backwards read don't humans because --Sig_E3z1hQsAHrlMNU0QKSr/W+1 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (GNU/Linux) iD8DBQFGHzPeum4al0N1GQMRAlR/AJ0Xg1mLdkd7B1sfcD4RPiQcCyxrQACfejNA Htq0315aDVoip7+2UPSHeWg= =xAIB -----END PGP SIGNATURE----- --Sig_E3z1hQsAHrlMNU0QKSr/W+1-- -- gentoo-user@gentoo.org mailing list