LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-05-2004, 02:26 AM   #1
Smokey
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 313

Rep: Reputation: 30
how to find out what libraries and whatnot a program uses?


I installed gedit through swaret and it had to install other stuff to make gedit work, but I dont really use gedit anymore so I took it off.......so how can I find out what other libraries and whatnot gedit uses?

I went to the gedit page and all it says it uses is gnome libraries, yeah I know that, but which ones specifically?
 
Old 08-05-2004, 02:40 AM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
ldd <file>
Any doubts, man ldd
 
Old 08-05-2004, 03:36 AM   #3
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
I hope you have not the idea to remove all libraries which are linked to gedit

Last edited by Cedrik; 08-05-2004 at 03:39 AM.
 
Old 08-05-2004, 07:48 AM   #4
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Rep: Reputation: 30
you shuold keep your libraries so you dont have to go hunting for them in the future when you might need them again
 
Old 08-05-2004, 08:23 AM   #5
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
In Mandrake, I think I would do something like that (I'm not at home at the moment):
1# rpm -q --requires gedit >gedit.needs
2# urpme gedit
3# urpmi_find_leaves | xargs rpm -q --provides >noone.needs
4# cat gedit.needs noone.needs | sort | uniq -d | xargs rpm -q --whatprovides | sort -u >un-needed-RPMs.list

1) finds what is required by gedit
2) removes gedit
3) finds what is not required by anything (including things that were formely required by gedit)
4) finds the resources that are both useless now, but needed by gedit (which is not there anymore), and the result is piped to the rpm command that will give what packages provide those useless resources.

Now you may find something equivalent to do with Slackware-specific tools. I don't know this distribution at all. Sorry if that completely beside the point...

Yves.
 
Old 08-05-2004, 04:39 PM   #6
Smokey
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 313

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by gbonvehi
ldd <file>
Any doubts, man ldd
smokey% ldd gedit
ldd: ./gedit: No such file or directory
 
Old 08-05-2004, 04:54 PM   #7
superbondbond
Member
 
Registered: Nov 2002
Posts: 668

Rep: Reputation: 30
ldd /usr/bin/gedit
 
Old 08-05-2004, 06:12 PM   #8
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
You'd need to reinstall gedit in order to use ldd on it.
 
Old 08-05-2004, 06:38 PM   #9
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Here's another possible solution, though it won't work if you've already removed the gedit package. Look in /var/log/packages. See which packages were installed at the same time as the gedit package. Since SWareT installed gedit, looked for dependencies, and installed the required packages, all of the files should have roughly the same timestamp.
 
Old 08-05-2004, 06:43 PM   #10
Smokey
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 313

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by superbondbond
ldd /usr/bin/gedit
worked like a charm....thanks
 
  


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
Where can I find the libraries? clau_bolson Mandriva 1 11-08-2005 07:40 PM
cant find these libraries linuxmandrake Linux - Software 2 06-28-2005 02:19 PM
How to check which libraries does a program use? sceadu Programming 7 12-27-2004 07:39 PM
Cannot find qt libraries stevo22 Linux - Software 6 03-03-2004 11:32 AM
Can't find any libraries..? Halz Linux - Software 1 04-25-2002 05:46 PM

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

All times are GMT -5. The time now is 09:55 AM.

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