Gentoo Archives: gentoo-user

From: Tanstaafl <tanstaafl@×××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] System clean-up - removing unneeded packages *and* dependencies not used by other packages
Date: Sat, 17 Apr 2010 20:02:12
Message-Id: 4BCA138E.2020807@libertytrek.org
In Reply to: Re: [gentoo-user] System clean-up - removing unneeded packages *and* dependencies not used by other packages by KH
1 On 2010-04-17 3:42 PM, KH wrote:
2 > Am 17.04.2010 21:30, schrieb Jarry:
3 >> On 17. 4. 2010 21:20, Tanstaafl wrote:
4 >>> Whats the best way to uninstall a package - in this case, openldap, but
5 >>> really for any package - and get all of the dependencies it pulls in,
6 >>> but only ones that are not required for other unrelated (to openldap)
7 >>> packages?
8
9 >> I'm using this sequence:
10 >>
11 >> emerge -C <packagename>
12 >> emerge --depclean
13 >> revdep-rebuild
14
15 > Or:
16 >
17 > emerge --depclean <atom>
18 >
19 > Depclean serves as a dependency aware version of --unmerge. When
20 > given one or more atoms, it will unmerge matched packages that have no
21 > reverse dependencies. Use --depclean together with --verbose to show
22 > reverse dependencies.
23
24 Excellent! Thanks guys...
25
26 --
27
28 Charles