msgbartop
A cronological documentation test project, nothing serious, really!
msgbarbottom

26 Nov 07 Query RPM database/packages and list their architecture

Posted by

If you use the –queryformat argument with rpm it is possible to query RPMs for different architectures installed

# rpm -qa --queryformat %{NAME}-%{VERSION}-%{ARCH}\\n | grep dbus-glib | sort

Result

dbus-glib-0.22-12.EL.5-i386
dbus-glib-0.22-12.EL.5-x86_64

This can also be used in one of my previous posts: Remove duplicate packages when querying the rpm database.

Tags: , , ,

Leave a Comment

You must be logged in to post a comment.