LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-17-2005, 11:22 AM   #1
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Rep: Reputation: 31
Which libs in which directory?


I have a number of duplicate libraries in two directories -- /usr/lib and usr/lib/gcc-lib/i486-slackware-linux/3.3.4. I did this myself a few months ago when I was trying to restore a number of files that had been zapped. It was not a smart thing to do (neither the file-zapping nor the library-copying).

My problem: I'd like to straighten this out, but I don't know which libraries are *supposed* to be in the usr/lib/gcc-lib/i486-slackware-linux/3.3.4 directory.

My question: Is there a place where I can easily find out which libraries are supposed to be in usr/lib/gcc-lib/i486-slackware-linux/3.3.4?

I know this depends on what additional things I have installed on my system, but any info is better than nothing. I've had some success by reinstalling packages and seeing where installpkg puts them, but this is tedious.

Thanks for the advice.
 
Old 01-17-2005, 11:37 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
grep <library-name> /var/log/packages/*



Cheers,
Tink
 
Old 01-17-2005, 11:38 AM   #3
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
to get a list of what's installed from Slackware try :

" #grep usr/lib/gcc-lib/i486-slackware-linux/3.3.4 /var/log/packages/* "

those are the files in : " usr/lib/gcc-lib/i486-slackware-linux/3.3.4
you'll get a looong list....

egag
 
Old 01-17-2005, 11:52 AM   #4
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
The method that occurred to me was to go to www.slackware.org and search the packages database for the library names. The listing there will show you in which directory the library is installed in.
 
Old 01-17-2005, 11:52 AM   #5
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Original Poster
Rep: Reputation: 31
Very nice. Thanks, both of you.

Next question: How can I limit the grep output to the usr/lib/.../3.3.4 directory without having it go down into child directories.

Thanks again.
 
Old 01-17-2005, 12:16 PM   #6
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
use " grep -l "
see man grep.....

egag
 
Old 01-17-2005, 12:59 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally posted by clawhead
Very nice. Thanks, both of you.

Next question: How can I limit the grep output to the usr/lib/.../3.3.4 directory without having it go down into child directories.

Thanks again.
You can't (not in a trivial manner, anyway) ... but you
can narrow it down like this.

grep -h libname /var/log/packages/* | grep \/lib\/



Cheers,
Tink
 
Old 01-18-2005, 06:11 AM   #8
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by Tinkster
You can't (not in a trivial manner, anyway) ... but you
can narrow it down like this.

grep -h libname /var/log/packages/* | grep \/lib\/
Thank you, Tinkster. I really need to comes to grips with grep. There's a lot more to it than I'd thought.
 
Old 01-18-2005, 07:25 AM   #9
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
I would do :
grep -m 1 'i486-slackware' /var/log/packages/*

[edit]
sorry, I thought you searched the package names

Last edited by keefaz; 01-18-2005 at 07:27 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I Need some libs !!! ... I don't know what i'm doing !!! ISI Linux - Software 9 07-21-2004 07:09 PM
where do i get libs? NonSumPisces Linux - Software 2 05-26-2004 05:44 PM
qt libs komar Linux - Newbie 4 11-21-2003 07:24 AM
which libs? Tom9K Linux - Software 2 05-22-2002 02:06 PM
old c libs rlpt Programming 1 02-19-2002 09:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration