Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-16-2003, 01:07 AM   #1
LQ Newbie
Registered: Oct 2003
Location: New Delhi
Posts: 2

Rep: Reputation: 0
How to check if such xyz.rpm is already installed?


I am new to linux and trying to install oracle on my machine.I have already installed linux8 and as prerequisites I have to install lots of rpm ?.

How do I check if a particular rpm is already is installed.For example how do I check if

a) kernel-2.4.9-34.i686.rpm is already installed and what is the version
b) similaryl gcc-2.96.85.i386.rpm

Kindly help me as I am stuck here.

Old 10-16-2003, 01:10 AM   #2
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
rpm -qa | grep package_name

so for gcc, you could do:

rpm -qa | grep gcc

Old 10-16-2003, 02:40 AM   #3
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
Type uname -r in a shell to get the current kernel version.
Old 10-16-2003, 09:23 AM   #4
dot hog
Registered: Oct 2003
Location: Boondocks USA
Distribution: RH9
Posts: 50

Rep: Reputation: 15
Hi. Thought I'd ask this question here, as I consulted this topic to problem solve (it didn't help). Anyway...

I tried to install the alsa-drivers rpm on my computer, which is running RH9. Want to get sound from my SB 16 PCI soundcard.

I used "rpm -i"

Linux returned some gobblety-gook about "group dude" and "user dude" not existing.

I checked if things were installed with "rpm -q alsa-drivers" (thanks to this thread). Linux returned that the package 'alsa-drivers' was not installed.

I got the rpm from Did I grab the wrong one, or am I using the 'rpm' command incorrectly?

EDIT: I WAS using the rpm command incorrectly, as this is an src file. Just wanted to follow-up.

Think I know what to do. I'll give it a whirl.

Last edited by dot hog; 10-16-2003 at 10:32 AM.
Old 10-16-2003, 01:28 PM   #5
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
I usually install a new rpm using:

rpm -ivh package_name.rpm

That gives you a little more output when something goes wrong.
Try that and post the errors. And don't forget that you'll have to be root to install the rpm.

Also, you do realize the rpm your installing is a source (src) rpm. So once you unpack the rpm you'll have to compile it as well. Try looking for a normal RH9 rpm.

Sorry didn't catch your edit when I read the post. Looks like you figured it out.

Last edited by Capt_Caveman; 10-16-2003 at 01:29 PM.


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
SUSE 9.3 RPM what Software is installed a Simple way to check Martin Rasch SUSE / openSUSE 2 07-18-2005 02:26 PM
How to check SW installed not by rpm maxgg Linux - Newbie 1 12-23-2004 10:29 AM
rpm -ivh says installed rpm -e says not installed ??? skog Fedora 3 12-22-2004 04:52 PM
How to check if a rpm Package is already installed? DarkExile Linux - Newbie 4 12-14-2004 10:41 AM
Allow user to access /dev/xyz theonebeyond Linux - General 2 09-03-2004 08:08 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration