LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-08-2012, 12:43 PM   #1
Advice Pro
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 343

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

Last edited by Advice Pro; 02-09-2012 at 08:52 AM.
 
Old 02-08-2012, 01:45 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,687
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
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
 
Old 02-08-2012, 02:37 PM   #3
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Rep: Reputation: 8
in debian you can type dpkg -l 'package-name'.
in redhat type rpm -q 'package-name'.
 
Old 02-08-2012, 03:15 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
Quote:
Originally Posted by Thor_2.0 View Post
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
 
1 members found this post helpful.
  


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
rpm packages uninstalled - how to reinstall avijitp Linux - Software 8 01-16-2007 07:55 PM
Uninstalled one of two kernels, yum keeps trying to download packages for it ttnunam Linux - General 3 11-16-2006 02:09 AM
Yast does not show UNINSTALLED packages pujansrt SUSE / openSUSE 8 06-06-2006 03:05 AM
Check availability of packages on the install CD chandru.in Ubuntu 1 01-03-2006 08:49 PM
no uninstalled packages in my rpmdatabase, using apt... Mayco Fedora 0 12-14-2004 09:45 AM


All times are GMT -5. The time now is 10:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration