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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-31-2003, 02:27 PM
|
#1
|
Member
Registered: Jul 2003
Location: Chicagoland
Distribution: ArchLinux
Posts: 261
Rep:
|
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?
|
|
|
08-31-2003, 02:30 PM
|
#2
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
08-31-2003, 02:31 PM
|
#3
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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
|
|
|
08-31-2003, 04:59 PM
|
#4
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
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....
|
|
|
All times are GMT -5. The time now is 10:50 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|