Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-18-2008, 10:42 AM   #1
LQ Newbie
Registered: Feb 2008
Posts: 9

Rep: Reputation: 0
Help on using rpm on Red Hat

I need this fast!!!!
I'm checking to see if some packages are installed on a server with RedHat enterprise 4.

Problem is that all packages that i'm looking for are already installed, but I need to know if the ones installed are 32 bits or 64. Because if they are 64 I need to uninstall them and then install the 32 bits version.

rpm -qi doesn't give that info, so there must be another way.

Really need this ASAP, i don't even know if I put this on the correct forum but what the heck, desperate times...
Old 03-18-2008, 10:53 AM   #2
Simon Bridge
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198

rpm -qa | grep i386
rpm -qa | grep x86_64

.... surely?
Old 03-18-2008, 10:56 AM   #3
LQ Newbie
Registered: Feb 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Both commands returned nothing
Old 03-18-2008, 11:20 AM   #4
Registered: Mar 2008
Location: India
Distribution: RHEL5
Posts: 34

Rep: Reputation: 15
Dear Mr krysak

If both commands return nothing, it means those packages are not installed in your system.


Registered linux user # 467324
ALL HUMAN ACTIONS ARE EQUIVALENT...............................
Old 03-18-2008, 12:32 PM   #5
Registered: Nov 2006
Location: Indiana, U.S.A.
Distribution: Red Hat Enterprise Linux, Fedora, CentOS
Posts: 134

Rep: Reputation: 16
You should be able to do:

$ rpm -q <package name>

to get the version of the package that is installed returned to you.


$ rpm -q mysql


$ mysql-5.0.27-1.fc6

Although, if the above listed two queries returned no results, the chances of this being any more helpful are slim, because that means that the package names didn't include "i386" or "x86_64" in their file names.
Old 03-18-2008, 03:20 PM   #6
LQ Newbie
Registered: Feb 2008
Posts: 9

Original Poster
Rep: Reputation: 0
the comands returned nothing because they were misused, the correct would have been:

rpm -qa | grep <package name>

the problem is that redhat doesn't store the "end" of the package for instance:

it only stores the name of the package not if it was for 64 or 32.

But anyways forget about it, the problem was resolved some other way here, but I'm still curious, isn't there a way to know?
Old 03-18-2008, 11:34 PM   #7
Simon Bridge
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
the commands returned nothing because they were misused
The commands were used correctly thank you very much - and they correctly returned that the strings "i386" and "x86_64" are not part of any package names. As you pointed out.

I had a suspicion that might be the case - but there were other possibilities.

<reads other replies> Seems they are also misunderstood a lot.

Probably the quickest approach would be to use up2date to install/update each package on your list - but the x86_64 version. If it is already installed it will update. If it is already the latest version it will say so.

There is a question about how the problem would arise... I take it RHEL is 64 bit, but is running a mixed-package environment?


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
rpm help Red Hat 9. ThrustMaster Linux - Newbie 2 03-20-2004 04:06 PM
Qt designer rpm for red Hat 7.2 nitin_kataria Programming 1 10-18-2003 01:02 AM
RPM Problems in Red Hat 9 bad_cmd/filenam Linux - Software 9 04-28-2003 12:43 PM
red hat rpm quicktime ronss Linux - Software 7 11-30-2002 02:02 AM
Rpm Trouble Red Hat 7.3 OrganicX Linux - Software 11 09-24-2002 06:29 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:21 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration