Disable yum transaction check for file conflict

2020-06-09 10:17发布

How do I disable yum transaction check for a file ?

Transaction check error:
  file /usr/local/xenco/backend/current from install of xenco-rr-1.9.6-104.x86_64 conflicts with file from package xenco-server-1.9.6-104.x86_64

标签: linux yum
3条回答
不美不萌又怎样
2楼-- · 2020-06-09 10:54

This method worked for me, when I faced similar issue

Simply get the existing package with below command

rpm -qa | grep xenco

Remove those conflicting package with

yum remove packageNameFromTheList
查看更多
我欲成王,谁敢阻挡
3楼-- · 2020-06-09 10:57

Replacing files from another RPM package is bad idea in most cases and I strongly advise against what you're trying to do. That said, apply following at your own risk.

Yum does not provide an option to install conflicting files, I think. However, that does not prevent you from installing a RPM package with rpm(1) which does provide an option to override existing files from another package, namely --replacefiles.

So, first get the RPM of the package you want to install on a local filesystem (/usr/local/xenco... makes me suspect that is the case already). Next install the RPM with rpm -i --replacefiles <your_rpm_file>.

查看更多
走好不送
4楼-- · 2020-06-09 11:05

what i always do is remove the package that is on the right hand side. In your case it would be -

yum remove xenco-server-1.9.6-104.x86_64

yum remove <> can work with any package error, i have encountered many such transactions errors when working on vm on cloud, i always remove the package that causes conflicts and always has worked for me.

查看更多
登录 后发表回答