禁用yum事务检查以防止文件冲突 [英] Disable yum transaction check for file conflict

查看:42
本文介绍了禁用yum事务检查以防止文件冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何禁用文件的yum事务检查?

 交易检查错误:安装xenco-rr-1.9.6-104.x86_64时的文件/usr/local/xenco/backend/current与软件包xenco-server-1.9.6-104.x86_64中的文件冲突 

解决方案

在大多数情况下,替换另一个RPM软件包中的文件是个坏主意,我强烈建议您不要这样做.就是说,申请以下内容需要您自担风险.

我认为,Yum没有提供安装冲突文件的选项.但是,这不会阻止您使用rpm(1)安装RPM软件包,而确实提供了一个选项来覆盖另一个软件包中的现有文件,即-replacefiles ./p>

因此,首先获取要在本地文件系统上安装的软件包的RPM(/usr/local/xenco ... 使我怀疑情况已经如此).接下来,使用 rpm -i --replacefiles< your_rpm_file> 安装RPM.

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

解决方案

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

这篇关于禁用yum事务检查以防止文件冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆