Gentoo Archives: gentoo-user

From: Rumen Yotov <rumen@××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] world favorites: pros and cons
Date: Wed, 05 Jul 2006 11:52:14
Message-Id: 44ABA36E.8060502@qrypto.org
In Reply to: Re: [gentoo-user] world favorites: pros and cons by Daniel
1 Daniel wrote:
2
3 >Neil Bothwick wrote:
4 >
5 >
6 >>On Wed, 05 Jul 2006 12:18:20 +0200, Alexander Skwar wrote:
7 >>
8 >>
9 >>
10 >>>But you'll still miss some packages this way - packages which aren't
11 >>>in the world file and which are also no dependency of *CURRENTLY*
12 >>>installed packages. Those are normally packages, which aren't used
13 >>>anymore and could be removed. I forgot how to find out, which packages
14 >>>that are.
15 >>>
16 >>>
17 >>emerge --depclean --pretend
18 >>
19 >>
20 >>
21 >>
22 >
23 >Your replies make me feel I haven't done wrong trying to put every
24 >single package in the world set. Actually in my fear not to miss some
25 >updates I use this script:
26 >---
27 >emerge -DuNpv <package-name> | cut -sf2 -d '/' |\
28 >cut -f1 -d ' '|\
29 >while read pkg;
30 > do find /usr/portage/ -name ${pkg}.ebuild;
31 >done | sed 's/\/usr\/portage\///g' |\
32 >while read a;
33 > do echo ${a%/*}; done |\
34 >xargs -n1 emerge
35 >---
36 >This way all dependencies get individually emerged and therefore
37 >recorded in the world file. Of course excluding some particular cases.
38 >For example:
39 >"emerge xmms" -> pulls-in gtk+-1.2", while
40 >"emerge mozilla-firefox" -> pulls-in gtk+2.8.
41 >
42 >So in this case the aforementioned script used with "emerge xmms
43 >mozilla-firefox" will individually emerge only gtk+-2.8 and gtk+-1.2
44 >would be emerged as dependency of xmms and won't get recorded in the
45 >world set.
46 >
47 >
48 >
49 >--
50 >Best regards
51 >Daniel
52 >
53 >
54 >
55 Hi,
56 In the contrary, i (at least) put in 'world' only things i emerge.
57 The reason - the world-file is smaller and eventually is scanned more
58 quickly.
59 Unless you also use "-D|--deep" option, which also scans the deps.
60 HTH.Rumen
61 --
62 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] world favorites: pros and cons Daniel Iliev <danny@××××××××.com>