Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Removing unneeded libraries
Date: Fri, 11 Aug 2006 22:39:39
Message-Id: 7573e9640608111534v1f4f9fe7r92ecad74c254ed7e@mail.gmail.com
In Reply to: [gentoo-user] Removing unneeded libraries by JC Denton
1 On 8/11/06, JC Denton <jcdentonmail@×××××.de> wrote:
2 > Does "eclean" or "emerge --depclean" remove libs that are orphaned?
3
4 Yes, provided you have not modified the files yourself.
5
6 > The problem is, that my /usr/lib/... and /usr/include/ almost 1 GB in size!
7
8 Sounds about right, but this command will generate a list of all
9 library files that portage things should be installed:
10
11 find /var/db/pkg/ -name CONTENTS | xargs grep /usr/lib/lib | awk '{
12 print $2 }' | sort
13
14 You can diff that with the output of "ls /usr/lib/lib*" to see what
15 may be there that portage doesn't know about.
16
17 -Richard
18 --
19 gentoo-user@g.o mailing list