遇到冲突问题的文件几乎与上面链接中的文件相同。但是,我并没有像在链接中发布问题的人那样尝试安装 php56w...等,我只是想yum update
。
我想知道如何解决冲突以完成我的yum update
.
Transaction Summary
===============================================================================================================================================================================================================================================================================================================================
Install 31 Package(s)
Upgrade 334 Package(s)
Total size: 282 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Check Error:
file /opt/rh/httpd24/root/etc/httpd/conf.d/README conflicts between attempted installs of httpd24-httpd-2.4.34-18.el6.x86_64 and httpd-2.2.15-69.el6.centos.x86_64
file /opt/rh/httpd24/root/etc/httpd/conf/magic conflicts between attempted installs of httpd24-httpd-2.4.34-18.el6.x86_64 and httpd-2.2.15-69.el6.centos.x86_64
file /opt/rh/httpd24/root/etc/httpd/logs conflicts between attempted installs of httpd24-httpd-2.4.34-18.el6.x86_64 and httpd-2.2.15-69.el6.centos.x86_64
file /opt/rh/httpd24/root/etc/httpd/modules conflicts between attempted installs of httpd24-httpd-2.4.34-18.el6.x86_64 and httpd-2.2.15-69.el6.centos.x86_64
file /opt/rh/httpd24/root/etc/httpd/run conflicts between attempted installs of httpd24-httpd-2.4.34-18.el6.x86_64 and httpd-2.2.15-69.el6.centos.x86_64
Error Summary
(背景):
最初httpd
是安装的,由于安全原因httpd24
,后来安装了。(在原始安装期间我不在身边)。目前,我不知道冲突背后的原因。
yum
在此之前也被一个损坏的回购阻止。我尝试使用该参数--disablerepo=<nameofrepo>
来解决此问题,但由于某种原因,它不起作用,我通过更改enable=1
为enable=0
. 在这里推荐。
我想了解更多并找到了这篇文章,但它是 RH 的订阅者只读。
是修复这里提到的删除或替换文件的唯一方法吗?
尽管第一个答案的前几行表明:
在大多数情况下,从另一个 RPM 包替换文件是个坏主意,我强烈建议您不要尝试这样做。也就是说,应用以下风险自负。
如果可能的话,我想解决冲突而不是使用破坏性的方法。