Yes thank you all around again, rpm -qa | grep -i mysql did it. That showed me all the installed packages. Then I was able to get more information about each package. As it turns out I have MySQL-Max-4.0.12-0 and MySQL-server-4.0.12-0 installed. I remember installing only one, but I'm not complaining as long as the client program uses the right server and I can do future upgrade with no problem. Anyway, the funny thing is, I had done rpm -qa | grep mysql* and as you pointed out had gotten the wrong results. I have been using grep for years and I never knew what you pointed out. Quite humbling. --- Andre Costa <acosta@xxxxxxxxxxxxxxxxxxx> wrote: > On Sun, 14 Dec 2003 11:09:34 -0800 (PST) > Leila Lappin <damovand@xxxxxxxxx> wrote: > > > Andre, > > > > Thanks again for the great information. The grep > > information is definitely essential it could > really > > change the results. > > Glad I could help. Don't forget to 'man grep' (if > you're more fond of > GUIs, try yelp). > > > I followed all your instructions with rpm, as you > may > > note, replacing your example package with mysql. > > Interesting is that this time I got MySQL client > > listed, no server. > > $ rpm _qf `type _p mysql` > > Don't know if this was a typo: '_' (underscore) are > only used as > filename chars; you used '-' (dash) here, right? > > > $ MySQL-client-4.0.12-0 > > > > And when I did rpmverify mysql I got the result, > > _package mysql is not installed_ > > You still didn't get it: the above command told you > 'the mysql command > you asked me to find belongs to package > MySQL-client-4.0.12-0'. The name > of the package is _not_ mysql. (I recommend 'man > rpm' as well) > > So, the correct query would have been: > > rpmverify MySQL-client > > Also, please note that you asked RPM to show you the > package that owns > 'mysql' (which is MySQL client, as RPM correctly > showed). If you want to > look for MySQL _server_, you should look for mysqld. > > Please try this out: > > rpm -qa | grep -i mysql > > This will show you _all_ MySQL packages installed > (regardless of > case-folding). Then, all you have to do is > 'rpmverify' them all (or 'rpm > -ql [package-name]' to list installed files). > > > rpm database may not be corrupt but can it be > > overridden with a fresh upgrade of RH? I upgraded > my > > mysql and then upgraded RH from 7.2 to 9, could > that > > cause the situation? > > In this case, AFAICS your mysql would have been > upgraded to RH9 version, > with no side-effects. > > I still think your DB is fine, you're just confused > and don't know how > to properly query RPM DB. > > > Finally if you could help me out with most > important > > part of the question, assuming that something has > > happened to lose the information about mysql > package, > > how can I get back the information about my > installed > > version? > > First, make sure you clear all the confusion you're > making. I do believe > all info is there, you just have to make the right > queries. > > HTH > > Andre > > -- > Andre Oliveira da Costa > > > _______________________________________________ > Rpm-list mailing list > Rpm-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/rpm-list __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list