LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-23-2005, 03:04 PM   #1
KMorley
LQ Newbie
 
Registered: Feb 2005
Distribution: RedHat ES3
Posts: 2

Rep: Reputation: 0
How to tell what packages are installed?


I've just installed RedHat ES3 and I'm patching to the latest rev. I'm going to install ClamAV which has some prerequisites, such as zlib, zlib-devel, gcc compiler suite, bzip2, bzip2-devel, etc.

What command can I use to determine if these packages are installed and, if so, what version is installed?

Thanks!
 
Old 02-23-2005, 03:15 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
There are several ways to get the info.
Sometimes the program will give version by using the command: gcc --version

You can use another command which indicates the item is installed and where it's at....
# whereis zlib
zlib: /usr/include/zlib.h /usr/share/man/man3/zlib.3.gz

Here is another method for rpm based systems .....
# rpm -qa | grep bzip2
bzip2-1.0.2-13
bzip2-devel-1.0.2-13
bzip2-libs-1.0.2-13
 
Old 02-23-2005, 03:16 PM   #3
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
redhat use rpm packet managment.
type:
rpm -qa |grep gcc
to see all the installed packages that their name contain the word gcc.
Most if not all the packages use this kind of formula for naming:
<package_name>-<version>

*EDIT*
if you simply type rpm -qa all installed packages will be displayed

a command like:
rpm -qa > packages.txt
will print all the installed packages in the file package.txt

use rpm -qa| less
to pipe the results through less.
This will make the output to stay still and you can use the arrows (up/down) to view the output. you terminate "less" with q.

Last edited by perfect_circle; 02-23-2005 at 03:22 PM.
 
  


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
installed packages abdul_ado Linux - Software 4 08-15-2005 12:46 PM
where is installed packages bruse Mandriva 4 04-05-2005 09:55 AM
RPM is saying installed packages aren't installed ticky87 Linux - Newbie 4 07-26-2004 02:17 AM
installed packages race Debian 7 03-10-2004 10:27 AM
Were are my packages being installed? sramelyk Linux - Software 3 02-22-2004 12:47 AM


All times are GMT -5. The time now is 11:44 AM.

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