Zoetrope

a blog about web apps, Lisp, Rails and all the REST ...

Querying RPM for 32bit and 64bit versions

Query all:

[root@server ~]# rpm -qa --qf '%{name}.%{arch}\n'
hdparm.x86_64
rootfiles.noarch
basesystem.noarch
libsepol.x86_64
gmp.x86_64
...

Query specific packages:

[root@server ~]# rpm -q --queryformat='%{n}-%{v}-%{r}.%{arch}\n' glibc
glibc-2.3.4-2.39.x86_64
glibc-2.3.4-2.39.i686
tags: ,

Sorry, comments are closed for this article.