原文网址:https://www.youyong.top/article/1158e5cb51f0
在 CentOS 上使用 YUM 在线安装软件包的时候,有时候会同时安装 3 2位和 64 位的包。并且在 update 的时候也会更新双份。
原文网址:https://www.youyong.top/article/1158e5cb51f0
在 CentOS 上使用 YUM 在线安装软件包的时候,有时候会同时安装 3 2位和 64 位的包。并且在 update 的时候也会更新双份。
原文网址:https://www.youyong.top/article/1158e5cb51f0
配置 YUM 只安装 64 位的包,只需在 /etc/yum.conf 中加入 "exclude=*.i?86" 选项。如果没有的就直接加入该配置选项即可:
$ vi /etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=19&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-releaseexclude=*.i?86
说明:*.i?86 可以用来过滤掉 i386、i686 等 32 位软件包。
共 0 条留言