Disable yum transaction check for file conflict

前端 未结 3 1101
夕颜
夕颜 2021-02-12 22:21

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 c         


        
相关标签:
3条回答
  • 2021-02-12 23:04

    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.

    0 讨论(0)
  • 2021-02-12 23:09

    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>.

    0 讨论(0)
  • 2021-02-12 23:11

    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
    
    0 讨论(0)
提交回复
热议问题