CentOS 64位下yum只安装x86_64版本软件:
# vim /etc/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
exclude=*.i386 *.i686
logfile=/var/log/yum.log
distroverpkg=RedHat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
如果你已经安装了一些32位的软件包你也可以以下命令删除
# yum remove \*.i\?86