how to find out what libraries and whatnot a program uses?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.