LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Locating Dependencies for a Package via Apt (https://www.linuxquestions.org/questions/debian-26/locating-dependencies-for-a-package-via-apt-725803/)

carlosinfl 05-13-2009 07:21 PM

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>>***

craigevil 05-13-2009 11:01 PM

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


All times are GMT -5. The time now is 01:33 PM.