Gentoo Archives: gentoo-user

From: Frank Steinmetzger <Warp_7@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Remove redundant entries in "world" - howto
Date: Tue, 21 Dec 2010 06:05:23
Message-Id: 201012210630.09541.Warp_7@gmx.de
In Reply to: Re: [gentoo-user] Remove redundant entries in "world" - howto by Pau Peris
1 On Wednesday 15 December 2010 19:24:22 Pau Peris wrote:
2
3 > n=`wc -l /var/lib/portage/world|awk '{ print $1 }'`;
4 > for i in `seq 1 $n`;do
5 > pkg=`cat /var/lib/portage/world|head -n$i|tail -n1`;
6 > echo -e "Packages depending on $pkg." >> /tmp/auditWorldFile.log
7 > equery d $pkg >> /tmp/auditWorldFile.log
8 > echo -e "" >> /tmp/auditWorldFile.log
9 > done;
10
11 or without the counting loop:
12
13 while read pkg; do
14 echo ....
15 done < /var/lib/portage/world
16
17 ;-)
18 --
19 Gruß | Greetings | Qapla'
20 Beamy, Scot me up!