detecting 32-bit verses 64-bit RPMs

Paul Howarth paul at city-fan.org
Tue Dec 6 16:38:39 UTC 2005


Dave Mitchell wrote:
> On my x86_64 FC4 system, I see some duplicated RPMs:
> 
> 
>     # rpm -q mysql
>     mysql-4.1.15-1.FC4.1
>     mysql-4.1.15-1.FC4.1
>     #
> 
> I'm assuming that these are 32-bit and 64-bit versions. My two questions
> are:
> 
> How can I list them in such a way that distingushes them?

$ rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' mysql

> How can I select just one of them? For example,
>     rpm -ql mysql-4.1.15-1.FC4.1
> appears to list both 32-bit and 64-bit files.

$ rpm -ql mysql-4.1.15-1.FC4.1.i386
$ rpm -ql mysql-4.1.15-1.FC4.1.x86_64

Paul.




More information about the users mailing list