我运行64位版本的CentOS5。目前,当我运行Yum更新或安装时,除非百胜之前清除了i386软件包,否则它将在i386可用时安装x86_64软件包。
百胜是否可以先安装x86_64软件包,然后如果没有64位的软件包可用,可以安装i386软件包吗?
我知道我可以设置首选项,以便只安装64位的包,但是我不想这样做,因为如果32位包是唯一的选项,它将阻止32位包的安装。
发布于 2012-06-28 03:30:14
在您的multilib_policy=best
中设置yum.conf,它默认为“all”,因此它同时安装i386和x86_64包。当您将其设置为“最佳”时,只有在没有i386版本的情况下才会安装x86_64。
来自CentOS 5 yum.conf手册页:
multilib_policy - Can be set to ’all’ or ’best’. All means
install all possible arches for any package you want to
install. Therefore yum install foo will install foo.i386
and foo.x86_64 on x86_64, if it is available. Best means
install the best arch for this platform, only.
https://unix.stackexchange.com/questions/41784
复制相似问题