yum过滤(只安装64位软件包)

因为系统是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)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值