LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 11-23-2006, 11:11 AM   #1
bigalexe
Member
 
Registered: Apr 2006
Location: SE michigan
Distribution: Ubuntu, Currently Chained to Windows
Posts: 67

Rep: Reputation: 15
View Depending Programs


THis is a general question referring to any distro, and even WindowsXP.

Is there any way to view the programs which depend on a certain file? For example you can see that GIMP depends on certain files in GTK in order to run by viewing file properties of the GIMP files. I want to be able to do this in reverse. This way i know if i can delete a file library.
 
Old 11-23-2006, 04:31 PM   #2
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 530

Rep: Reputation: 30
You mean a program depends on certain library/ies or a library is used by certain programs ?
On the first case ldd shows you what shared libs are used by a certain program.
On the second I suspect you have no chance ...
Ciao
 
Old 11-23-2006, 09:53 PM   #3
bigalexe
Member
 
Registered: Apr 2006
Location: SE michigan
Distribution: Ubuntu, Currently Chained to Windows
Posts: 67

Original Poster
Rep: Reputation: 15
ok lets say that we have the GIMP which depends on the GTK lib. Now there is some way in viewing file properties that i can tell from looking at GIMP in the filesystem navigator (lets say Nautilus) that it depends on GTK and also tell what else it depends on. I want to do the inverse; i want to be able to look at files in the GTK library and see what depends on them.
 
Old 11-24-2006, 02:40 PM   #4
mcmillan
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 489

Rep: Reputation: 30
The only thing I can think of is that when you try to remove a package it will tell you when other things will be removed also. I suppose you could try to do that, than cancel changes in synaptic or answer no when it asks to continue on the command line if there's other packages that you don't want to remove.
 
Old 11-25-2006, 12:26 PM   #5
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
I see that you are using ubuntu. In this case, and I'm not very sure of this: you can try this command
apt-cache rdepends packagename

On an rpm based system, this command should work:
rpm -q --whatrequires packagename
 
Old 11-26-2006, 10:07 AM   #6
bigalexe
Member
 
Registered: Apr 2006
Location: SE michigan
Distribution: Ubuntu, Currently Chained to Windows
Posts: 67

Original Poster
Rep: Reputation: 15
wow thx, actually im stuck in WinXP right now until i get a few days to mess with my system again but that gives me a starting point.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian packet depending kara_lahana Debian 2 11-26-2005 12:44 PM
Permissions differ depending is SMB is used or not P_Ko Linux - Newbie 2 01-17-2005 05:14 PM
Can't view or delete installed programs in mandrake Ulrik_Uppkastar Linux - Software 1 11-30-2003 01:08 PM
how to view installed programs? jasonmcneil0 Linux - Newbie 7 10-29-2003 12:36 PM
I can't compile any QT depending C++ application! Paulo Ges Programming 1 04-17-2003 04:11 PM


All times are GMT -5. The time now is 12:06 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration