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 08-31-2003, 02:27 PM   #1
glenn69
Member
 
Registered: Jul 2003
Location: Chicagoland
Distribution: ArchLinux
Posts: 261

Rep: Reputation: 32
Question I'm an RPM moron!


I tried to install MySQL RPM by using rpm command with -i and received a message that it was already installed (which I think I did earlier through Konqueror.) Here's the output :

[root@localhost downloads]# rpm -i MySQL-server-4.0.14-0.i386.rpm
warning: MySQL-server-4.0.14-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
package MySQL-server-4.0.14-0 is already installed

[root@localhost downloads]# rpm -ql MySQL-server-4.0.14-0.i386.rpm
package MySQL-server-4.0.14-0.i386.rpm is not installed


...then as you can see I tried rpm -ql to see where it went, and got the message that it was not installed yet. I know I'm an RPM, or no a Linux, no lets just make that an all purpose moron, but I don't think it can be installed and not installed at the same time......can it?
 
Old 08-31-2003, 02:30 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Grep a single word, instead of grepping the whole package:
rpm -qa | grep mysql

OR

rpm -qa | grep server

Something like that. And btw, the | is not an L it's a pipe. On a US keyboard it's the key above the Enter key.

Cool
 
Old 08-31-2003, 02:31 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You only need the package name when seeing if it is installed:
rpm -ql MySQL-server

Sometimes a grep is useful too:
rpm -qa | grep MySQL
 
Old 08-31-2003, 04:59 PM   #4
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
grep becomes very useful in this case if you don't know the actual package name....
if you did rpm -ql MySQL it would say package not found, but if you grepped it then it will...another option i like throwing in the grep is -i which ignores case sensitivity so your basically guarunteed to find it if it does exist...
example...and we'll use MySQL
if you do ::
rpm -qa |grep mysql
you will receive no results
if you do ::
rpm -qa |grep -i mysql
it will show the version installed....
 
  


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
I am a mirosoft moron, save me please! Matt_the_Muppet Linux - Newbie 16 01-04-2006 03:50 PM
Help, help.. I'm a moron and deleted my rc.inetd.conf xanas3712 Slackware 5 05-12-2004 03:23 PM
rpm error only says"rpm: relocation error: rpm: undefined symbol: poptAliasOptions" dlrsims Linux - Newbie 2 11-14-2003 09:22 PM
.src.rpm, .i386.rpm and .i686.rpm hhegab Linux - Software 2 06-19-2003 07:19 AM
<---- Moron Here!!! rdnjr Linux - General 4 02-28-2003 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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