Centos查询一个包是32位还是64位命令

分类:CentOS教程 阅读:72984 次

[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