[root@localhost ~]# rpm -qa --queryformat %-{name}-%{version}-%{release}-%{arch}"\n" | grep net-snmp
net-snmp-5.3.2.2-9.el5_5.1-x86_64
net-snmp-utils-5.3.2.2-9.el5_5.1-x86_64
net-snmp-libs-5.3.2.2-9.el5_5.1-x86_64
[root@localhost ~]# rpm -qa --queryformat %-{name}-%{version}-%{release}-%{arch}"\n" | grep net-snmp
net-snmp-5.3.2.2-9.el5_5.1-i386
net-snmp-libs-5.3.2.2-9.el5_5.1-i386
net-snmp-utils-5.3.2.2-9.el5_5.1-i386
http://www.cnblogs.com/jackydalong/p/3416836.html