[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: need /usr/lib contents



Here's my suggestion. First cd to the /var/lib/dpkg/info directory and then 
execute this one line perl program:

% >perl -ne 'chop and print "$ARGV    $_\n" if m|^/usr/lib/.[^/]+$|' *.list

This tries to list all the lines that start with '/usr/lib/' and have no '/' 
afterwards. Just remove '[^/]' and it dumps the whole '/usr/lib/' tree.

This is the head of the output it gave when I tried it:

base-files.list    /usr/lib/locale
binutils.list    /usr/lib/libbfd.a
binutils.list    /usr/lib/libbfd.so.2.7.0.3
binutils.list    /usr/lib/libopcodes.a
[cut]

It also lists the directories that are in the /usr/lib e.g. /usr/lib/locale 
but I hope that's ok. My regexps are a little shaky, so maybe one of the perl 
gurus on the list can verify that it's correct.

Rikki "Doh!" Hall wrote:
> I inadvertently erased my /usr/lib directory (meaning to erase 
> /usr/local).  I have tried to reconstruct it as best as I can, but I am 
> not sure that I have gotten everything.  Here is the output of 'ls /usr/lib':
[cut]
> If someone could send me the same listing from their system or point out 
> which libraries I am missing, I would be appreciative.  Would there be 
> any hidden files in /usr/lib? (w/ names starting with .)  Does X keep any 
> libraries there?

I don't think X has any libraries there. As far as I know, they can be found
from /usr/X11R6/lib. There is /usr/lib/X11 but it's a symlink to
../X11R6/lib/X11 ( /usr/lib/X11 -> ../X11R6/lib/X11 ).

// Heikki
-- 
Heikki Vatiainen                  * hessu@cs.tut.fi
Tampere University of Technology  * Tampere, Finland







--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: