Centos、RHEL等系统,yum 安装的时候有时候会安装32的,然而我们只需要安装64位的软件!

解决方法:

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-release
exclude=*.i?86

说明:*.i?86 可以用来过滤掉 i386、i686 等 32 位软件包

 

相关文章:

  • 2021-06-03
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-05
  • 2021-10-13
  • 2021-05-07
  • 2021-09-02
相关资源
相似解决方案