因为系统是64位,默认yum会把32位的包一起安装,因此想过滤掉32位包!
vim /etc/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
##加一行那可##
exclude=*.i?86
#---
exclude选项支持正则表达式,*.i?86可以用来过滤掉i386,i686等32bit包了
如果你已经安装了一些32位的软件包你也可以以下命令删除哦
#yum remove \*.i\?86
------------------- 修改好 exclude=*.i?86 再 yum 就只有 64bit的文件下来了。
Dependencies Resolved
===============================================
Package Arch Version Repository Size
=============================================================
Installing:
bzip2-devel x86_64 1.0.3-6.el5_5 base 38 k
curl-devel x86_64 7.15.5-9.el5_6.3 updates 317 k
freetype-devel x86_64 2.2.1-28.el5_5.1 base 148 k
libidn-devel x86_64 0.6.5-1.1 base 239 k
libjpeg-devel x86_64 6b-37 base 105 k
libpng-devel x86_64 2:1.2.10-7.1.el5_5.3 base 184 k
libxml2-devel x86_64 2.6.26-2.1.2.8.el5_5.1 base 2.1 M
ncurses-devel x86_64 5.5-24.20060715 base 1.7 M
openldap-clients x86_64 2.3.43-12.el5_6.7 updates 223 k
openldap-servers x86_64 2.3.43-12.el5_6.7 updates 2.2 M
Transaction Summary
===============================================================
Install 10 Package(s)
Upgrade 0 Package(s)