Gentoo Archives: gentoo-amd64

From: "Bo Ørsted Andresen" <bo.andresen@××××.dk>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Re: GCC upgrade script
Date: Wed, 25 Apr 2007 13:31:00
Message-Id: 200704251529.17383.bo.andresen@zlin.dk
In Reply to: [gentoo-amd64] Re: GCC upgrade script by Duncan <1i5t5.duncan@cox.net>
1 On Wednesday 25 April 2007 11:07:46 Duncan wrote:
2 > emerge -pe world|grep /|cut -f2 -d"]"|sed "s/^ /=/"
3
4 This might work reasonably had you included -q for emerge.. As it is it may
5 include things like e.g. USE="blah%" (which emerge would choke on)...
6
7 # emerge -peq world | sed -n 's|^\[ebuild[^]]*\] \([^ ]\+\).*$|=\1|p'
8
9 > emerge -pe world|grep /|cut -f2 -d"]"|cut -f2 -d" "
10
11 # emerge -peq world | sed -n 's|^\[ebuild[^]]*\] \([^ ]\+\).*$|\1|p' | \
12 sed -r 's/-[^-]+(-r[0-9]+)*$//'
13
14 --
15 Bo Andresen

Attachments

File name MIME type
signature.asc application/pgp-signature