我在RHEL 5.5上进行系统范围的yum更新,并且IUS EPEL存储库抛出了一个缺失的依赖性错误:
php53-mcrypt-5.3.3-4.ius.el5.x86_64 from installed has depsolving problems --> Missing Dependency: php53-common = 5.3.3-4.ius.el5 is needed by package php53-mcrypt- 5.3.3-4.ius.el5.x86_64 (installed) Error: Missing Dependency: php53-common = 5.3.3-4.ius.el5 is needed by package php53-mcrypt-5.3.3-4.ius.el5.x86_64 (installed)
是否有一种方法可以针对所有其他存储库运行YUM更新,忽略IUS EPEL回购以跳过此依赖性问题?
澄清
我正在尝试从Redhatnetworking安装更新。 我无法find回购名称,所以我无法做类似sudo yum --disablerepo=* --enablerepo=rhel update因为我使用的yum版本不支持在--disablerepo之后列出的多个存储库。
更新
我的临时解决方法是运行sudo yum --exclude=php53* update 。 我深信还有更好的办法。 这个更好的方法包括解决实际问题,所以我也提交了IUS社区项目的错误。
更新#2
看起来像我发现与依赖问题。 我仍然认为应该有一个可行的解决方法。
谢谢!
尝试禁用repo开关:
--disablerepo=REPONAME
UPDATE
要查找当前“已知”(启用和禁用)的所有存储库:
yum repolist all
然后find哪个存储库让你对上面的包感到悲伤,试试:
yum list php53-mcrypt-5.3.3-4.ius.el5.x86_64 --showduplicates
然后这将显示你的哪个版本库提供了上面的软件包(你也会在列表中看到“安装”,以显示本地安装的软件包)。
一旦知道使用禁用repo开关的存储库,再次尝试禁用开关。
yum update --disablerepo=[from above]
如果没有执行上述步骤来单出您想省略的存储库,请尝试查看/etc/yum.repos.d/ ,这是RHEL存储库定义的默认位置。 一旦进入该目录,find所有非标准的RHEL基础并更新存储库文件,并包含enabled = 0 ,例如,
[repo] enabled=0
希望这可以帮助。
您可以在yum命令行中禁用多个存储库:
yum update --disablerepo=myrepo1 --disablerepo=myrepo2 --disablerepo=myrepo3
但是,如果你这样做,你必须明确地启用你想要的回购:
yum update --disablerepo=myrepo1 --disablerepo=myrepo2 --disablerepo=myrepo3 --enablerepo=TheRepoIWant
您可以将启用= 0添加到存储库configuration文件以禁用它。 存储库configuration文件的示例http://www.cyberciti.biz/tips/rhel5-fedora-core-add-new-yum-repository.html 。
最简单的方法是通过在/etc/yum.repos.d/中使用不需要的repo来评论Linux