LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 10-16-2003, 12:07 AM   #1
copernicus
LQ Newbie
 
Registered: Oct 2003
Location: New Delhi
Posts: 2

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


Hi,

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.


Thanks,
Copernicus
 
Old 10-16-2003, 12:10 AM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 57
rpm -qa | grep package_name

so for gcc, you could do:

rpm -qa | grep gcc

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

Rep: Reputation: 30
Type uname -r in a shell to get the current kernel version.
 
Old 10-16-2003, 08:23 AM   #4
dot hog
Member
 
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 alsa-driver-0.9.7-1.fr.src.rpm"

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 shrike.freshrpms.net. 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 09:32 AM.
 
Old 10-16-2003, 12:28 PM   #5
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

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

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


All times are GMT -5. The time now is 07:04 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration