Linux下查询一个包是32位还是64位
[root@localhost ~]# rpm -qa --queryformat %-{name}-%{version}-%{release}-%{arch}"
" | 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}" " | 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
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}" " | 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