LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
Search this Thread
Old 05-13-2009, 07:21 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,896

Rep: Reputation: 73
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
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Blog Entries: 12

Rep: Reputation: 455Reputation: 455Reputation: 455Reputation: 455Reputation: 455
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
 
  


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


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


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