LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 12-29-2008, 07:56 PM   #1
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 48
Knowing which all packages request a particular package as dependency


It is easy to know the dependencies of a particular package. For example, we can easily find out that cpp-4.3 (the package to be installed) depends on libc6 as per here.

However there might be other packages which also depends on libc6. Is there any way by which we can find out the packages which requires libc6 as their dependencies? For example, I would like to know what all packages depend on libc6?

Thanks
 
Old 12-30-2008, 01:27 AM   #2
BugZRevengE
Member
 
Registered: Oct 2005
Location: Australia
Distribution: Slackware & Kubuntu & CentOS
Posts: 106

Rep: Reputation: 17
apt-cache rdepends packagename

rdepends is reverse of depends :-)
 
Old 12-30-2008, 01:56 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,176

Rep: Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356
Please see 'man apt-cache' > > apt-cache depends <package-name>
Revers order of text : apt-cache rdepends ....

And then your question : 'apt-cache whatdepends <package-name>'

> > 'apt-cache whatdepends libc6 > whatdepends-libc.txt'

.... you will get 14000 ? lines, hence the text file !

'libc6' is the system, "everything" depends on that.
....

Last edited by knudfl; 12-30-2008 at 01:59 AM.
 
Old 12-30-2008, 02:26 AM   #4
BugZRevengE
Member
 
Registered: Oct 2005
Location: Australia
Distribution: Slackware & Kubuntu & CentOS
Posts: 106

Rep: Reputation: 17
ubuntu's apt-cache does not have a whatdepends option... but rdepends does reverse dependancy checking:
Quote:
apt-cache rdepends kate
kate
Reverse Depends:
kdebase-dev
kdebase-dev
kdebase
kate-plugins
kscope
kdissert
ichthux-desktop
kubuntu-desktop
kdebase-dev
kdebase-dev
kdebase
kate-plugins
 
Old 12-31-2008, 08:48 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,176

Rep: Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356
.
Sorry, whatdepends is an option in apt-rpm only.
 
Old 12-31-2008, 03:34 PM   #6
BugZRevengE
Member
 
Registered: Oct 2005
Location: Australia
Distribution: Slackware & Kubuntu & CentOS
Posts: 106

Rep: Reputation: 17
i thought it was from yum... but that was whatprovides i was thinking of
too many package managers
 
Old 01-05-2009, 08:38 PM   #7
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
Thank you guys. 'rdepends' just worked fine....
 
  


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
Help request regarding update packages slackraz Linux - Newbie 3 04-02-2008 06:25 AM
Request To Install Packages Already Installed? carlosinfl Debian 2 03-15-2008 04:21 PM
Apt-get: How to remove software without knowing package name? sureshot324 Linux - Software 4 10-27-2005 01:14 PM
MPlayer dependency packages kdogksu Debian 6 09-15-2005 12:38 PM
Dependency problem - I have the packages, but they're too new! halfhaggis Linux - Newbie 8 10-04-2003 09:35 AM


All times are GMT -5. The time now is 02:37 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