LinuxQuestions.org
Visit Jeremy's Blog.
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, 08:21 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

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 08:34 PM.
 
Old 05-14-2009, 12:01 AM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 457Reputation: 457Reputation: 457Reputation: 457Reputation: 457
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-23-2008 12:56 AM
latex2e package unavailable in package manager or apt-get cesine Debian 2 07-11-2006 03:31 PM
apt-get returns unmet dependencies error with python2.3-sip4-qt3 package 1337ln Linux - Newbie 5 06-16-2006 08: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-23-2004 12:59 AM
Does apt-get install <package> upgrade the package if it is already installed? davidas Debian 4 04-05-2004 07:12 PM


All times are GMT -5. The time now is 06:14 PM.

Main Menu
Advertisement
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