Gentoo Archives: gentoo-user

From: Joerg.Schilling@fokus.fraunhofer.de (Joerg Schilling)
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Finding orphaned libs
Date: Tue, 09 Jun 2009 10:05:10
Message-Id: 4a2e33d1.ywJ8s15Mhgl0cdxG%Joerg.Schilling@fokus.fraunhofer.de
In Reply to: Re: [gentoo-user] Finding orphaned libs by Willie Wong
1 Willie Wong <wwong@××××××××××××××.edu> wrote:
2
3 > > qfile --orphans $(find -H /usr/lib /lib -type f)
4 > >
5 > > which avoids checking all the symlinks.
6
7 In case that you find implementation works correctly, this will
8 not change anything unless either /usr/lib or /lib are symlinks.
9
10 If you however use find -L, -type f will find even all symlinks in case they
11 are pointing to a file.
12
13 In negative logic: "find -L /usr/lib -type l" will find all symlinks
14 in /usr/lib that do not point anywhere.
15
16
17 > BTW, though, $(find -H ...) will have too big a list. Perhaps better
18 > to do
19 >
20 > find -H /usr/lib /lib -type f | xargs qfile -o
21
22 This is why find has ".... -exec ... {} +" since 19 years.....
23
24 xargs will have problems in case that a file name contains spaces, tabs or
25 newlines.
26 Jörg
27
28 --
29 EMail:joerg@××××××××××××××××××××××××.de (home) Jörg Schilling D-13353 Berlin
30 js@××××××××××××.de (uni)
31 joerg.schilling@××××××××××××××××.de (work) Blog: http://schily.blogspot.com/
32 URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily

Replies

Subject Author
Re: [gentoo-user] Finding orphaned libs Neil Bothwick <neil@××××××××××.uk>