我用以下版本构建了一个软件包:
kmod-dahdi-linux 10:2.9.1.1-75_shmz65.1.11.2.6.32_431.el6.i686
这应该是系统上已安装的升级:
kmod-dahdi-linux 0:2.9.0.1-72_centos6.2.6.32_431.el6.i686
当我做一个yum localupdate
我得到以下:
Resolving Dependencies
--> Running transaction check
---> Package kmod-dahdi-linux.i686 0:2.9.0.1-72_centos6.2.6.32_431.el6.i686 will be updated
---> Package kmod-dahdi-linux.i686 10:2.9.1.1-75_shmz65.1.11.2.6.32_431.el6.i686 will be an update
--> Finished Dependency Resolution
但是当它遇到事务检查时,我遇到文件冲突,就像它没有更新软件包,而是并排安装,如下所示:
file /lib/modules/2.6.32-431.el6.i686/dahdi/dahdi.ko from install of kmod-dahdi-linux-10:2.9.1.1-75_shmz65.1.11.2.6.32_431.el6.i686.i686
conflicts with file from package kmod-dahdi-linux-2.9.0.1-72_centos6.2.6.32_431.el6.i686.i686
我尝试过时的版本已过时,我尝试过升级时代(如您所见,现在的时代已经是10)
当我做:
rpm -Uvh kmod-dahdi-linux-2.9.1.1-75_shmz65.1.11.2.6.32_431.el6.i686.i686.rpm
它可以正确升级。
我已经仔细检查了rpmversion显示为较新的版本:
# rpmdev-vercmp 0:2.9.0.1-72_centos6.2.6.32_431.el6.i686 10:2.9.1.1-75_shmz65.1.11.2.6.32_431.el6.i686
10:2.9.1.1-75_shmz65.1.11.2.6.32_431.el6.i686 is newer
有任何想法吗?
附加信息:
我已经重新配置了RPM以使其具有完全相同的dist标签,但仍然失败。
# yum localupdate kmod-dahdi-linux-2.9.1.1-11_centos6.2.6.32_431.el6.i686.i686.rpm
Resolving Dependencies
--> Running transaction check
---> Package kmod-dahdi-linux.i686 0:2.9.0.1-72_centos6.2.6.32_431.el6.i686 will be updated
---> Package kmod-dahdi-linux.i686 0:2.9.1.1-11_centos6.2.6.32_431.el6.i686 will be an update
--> Finished Dependency Resolution
Transaction Check Error:
file /lib/modules/2.6.32-431.el6.i686/dahdi/dahdi.ko from install of kmod-dahdi-linux-2.9.1.1-11_centos6.2.6.32_431.el6.i686.i686 conflicts with file from package kmod-dahdi-linux-2.9.0.1-72_centos6.2.6.32_431.el6.i686.i686
kernel-modules
的方法Provides:
。我知道这不是最好的解决方案,但目前可以使用。还有其他更好的选择吗?肯定有人必须在同一内核之前更新内核模块软件包……