LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can I check install and uninstalled packages via terminal? (https://www.linuxquestions.org/questions/linux-newbie-8/can-i-check-install-and-uninstalled-packages-via-terminal-928336/)

LAPIII 02-08-2012 11:43 AM

Can I check install and uninstalled packages via terminal?
 
I want to know the version number and package description whether I install a package or not. I rather not install a package just to do this, I just don't want to have to go to the package manager every time Then I want to look up a package.

ButterflyMelissa 02-08-2012 12:45 PM

Well, this is easy, and (welcome to Linux) the better way to manage software. Ubuntu and Debian, eh? Well, use apt-get for that...

Enjoy!!

Thor

devilboy09 02-08-2012 01:37 PM

in debian you can type dpkg -l 'package-name'.
in redhat type rpm -q 'package-name'.

TobiSGD 02-08-2012 02:15 PM

Quote:

Originally Posted by Thor_2.0 (Post 4597284)
Well, this is easy, and (welcome to Linux) the better way to manage software. Ubuntu and Debian, eh? Well, use apt-get for that...

Enjoy!!

Thor

Well, on Debian based distros it would rather be apt-cache. Use the policy option to get information about available and installed versions and the show option to get a description of a package.
For example:
Code:

apt-cache show vim
apt-cache policy iceweasel

The apt-cache command is also able to show dependencies, reverse dependencies and so on. For more information on the usage of apt-cache just have a look at
Code:

man apt-cache


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