Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Questions on the number of packages listed by 'emerge --depclean'
Date: Thu, 20 Jul 2006 20:08:22
Message-Id: 7573e9640607201255y51beab1ai94c3cefb402aa529@mail.gmail.com
In Reply to: [gentoo-user] Questions on the number of packages listed by 'emerge --depclean' by "Vladimir G. Ivanovic"
1 On 7/20/06, Vladimir G. Ivanovic <vgivanovic@×××××××.net> wrote:
2 > When I run 'emerge --depclean' I get this at the end as output:
3 >
4 > Packages installed: 2305
5 > Packages in world: 1762
6
7 WOW! That is a *huge* number of packages in world!
8
9 > 1. It seems I'm missing 17 (2322 - 2305 = 17) packages. How can
10 > find out the names of these packages?
11
12 They are in the depclean output. If it shows up in depclean, it is
13 not in world or system, nor a dependancy of something in world or
14 system.
15
16 > 2. It seems that I have 479 (2305 - 1762 - 64 = 479) packages that
17 > are in neither world nor system.
18 > A. What are the names of these packages?
19
20 emerge -Devp system | awk -F'] ' '{ print $2 }' | awk '{ print $1 }' >
21 ~/system_pkgs.txt
22 equery -i list | grep "/" | while read pkg; do
23 pkg="${pkg%-[0-9]*}"
24 grep "$pkg" /var/lib/portager/world >/dev/null && continue
25 grep "$pkg" ~/system_pkgs.txt >/dev/null && continue
26 echo $pkg
27 done
28
29 > B. How did they get onto my system?
30
31 They are dependancies of something in world or system. "equery depends <pkg>".
32
33 > 3. It seems that I have 22 (2305 - 2283 = 22) packages that are
34 > slotted. How can I check this?
35
36 "emerge --prune --pretend world"
37
38 Do *NOT* run this command without the --pretend option.
39
40 -Richard
41 --
42 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Questions on the number of packages listed by 'emerge --depclean' Dale <teendale@×××××××××××××.com>