Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 05-13-2009, 07:21 PM   #1
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Locating Dependencies for a Package via Apt

I have read the apt-get man page fairly well now and can't be sure how to list the dependencies of a specific package. It's nice to know if a package is NOT installed, what packages are required. Or if a package IS installed, what packages depend on the installed package.

I tried the -V option but I keep getting an error

apt-cache -V <package>
apt-get -V <package>

Anyone know how I can find the desired output via CLI?

***Ahh, I think I was looking for <dpkg -p <package_name>>***

Last edited by carlosinfl; 05-13-2009 at 07:34 PM.
Old 05-13-2009, 11:01 PM   #2
Senior Member
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 462Reputation: 462Reputation: 462Reputation: 462Reputation: 462
apt-cache show packagename will show package info , pretty much the same as dpkg -p
apt-cache policy packagename will show if it is installed and what version is available to be installed
apt-cache rdepends will show the reverse depends


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Locating Package Version Info carlosinfl Debian 11 03-22-2008 11:56 PM
latex2e package unavailable in package manager or apt-get cesine Debian 2 07-11-2006 02:31 PM
apt-get returns unmet dependencies error with python2.3-sip4-qt3 package 1337ln Linux - Newbie 5 06-16-2006 07:36 PM
HELP with apt-getHow come when I tried to use apt-get to remove a package to regain redss Linux - Newbie 1 08-22-2004 11:59 PM
Does apt-get install <package> upgrade the package if it is already installed? davidas Debian 4 04-05-2004 06:12 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:38 PM.

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