解决rpm conflicts with file from package问题

[[email protected] opt]# rpm -ivh python27-2.7.9-1.x86_64.rpm
准备中...                          ################################# [100%]
    file /usr/bin/python2.7 from install of python27-2.7.9-1.x86_64 conflicts with file from package python-2.7.5-76.el7.x86_64
    file /usr/share/man/man1/python2.7.1.gz from install of python27-2.7.9-1.x86_64 conflicts with file from package python-2.7.5-76.el7.x86_64
    file /usr/bin/python2.7-config from install of python27-2.7.9-1.x86_64 conflicts with file from package python-devel-2.7.5-76.el7.x86_64
    file /usr/include/python2.7/pyconfig.h from install of python27-2.7.9-1.x86_64 conflicts with file from package python-devel-2.7.5-76.el7.x86_64

方法一

yum -y remove python-2.7.5-76.el7.x86_64
卸载掉冲突的文件,安装新的文件。如果由于由于依赖关系导致要卸载很多软件,那可以优先考虑下一个方法。

方法二

rpm -ivh python27-2.7.9-1.x86_64.rpm --replacefiles
安装的时候增加--replacefiles参数,但是不知道在yum里如何实现。

--replacepkgs 强制重新安装已经安装的软件包
--replacefiles 替换属于其它软件包的文件

原文地址:https://www.cnblogs.com/robert871126/p/10772877.html

时间: 2024-10-10 20:36:23

解决rpm conflicts with file from package问题的相关文章

【linux】CentOS安装mysql*.rpm提示conflicts with file from package的解决办法

使用以下命令安装: rpm -ivh MySQL-server-5.6.19-1.linux_glibc2.5.x86_64.rpm 错误提示如下: Preparing...                ########################################### [100%] file /usr/share/mysql/charsets/README from install of MySQL-server-5.6.19-1.linux_glibc2.5.x86_6

CentOS安装mysql*.rpm提示conflicts with file from package的解决办法

CentOS 6.5下安装MySql 5.6 解压文件:tar xvf MySQL-5.6.19-1.linux_glibc2.5.x86_64.rpm-bundle.tar 释放出以下文件: MySQL-embedded-5.6.19-1.linux_glibc2.5.x86_64.rpmMySQL-devel-5.6.19-1.linux_glibc2.5.x86_64.rpmMySQL-shared-compat-5.6.19-1.linux_glibc2.5.x86_64.rpmMySQ

CentOS 安装软件时,错误Transaction check error ... file...conflicts with file from package zzz的解决

CentOS 安装软件时(比如:# yum install subversion),有时候会碰到类似如下的错误: Transaction check error: file /usr/lib64/libsvn_client-1.so.0.0.0 from install of subversion-1.8.11-1.x86_64 conflicts with file from package subversion-libs-1.7.14-7.el7_0.x86_64 file /usr/lib

安装MYSQL错误“conflicts with file from package mysql-libs-*” 解决方法

安装MYSQL的时候时: 错误现象: [[email protected] opt]# rpm -ivh MySQL-server-5.5.32-1.el6.x86_64.rpm Preparing... ########################################### [100%] file /usr/share/mysql/charsets/Index.xml from install of MySQL-server-5.5.32-1.el6.x86_64 confli

conflicts with file from package mariadb-libs

阿里云上安装RHEL 7.2 安装MySQL 报错近期有越来越多的客户在生产环境下部署MySQL/MariaDB,大家对开源数据库也是越来有信心了. # rpm -ivh mysql-community-common-*.el6.x86_64.rpm warning: mysql-community-common-5.7.19-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY Preparing... #

file /usr/share/mysql/... conflicts with file from package mysql-libs-5.1.73-3.el6_5.x86_ 64 MySQL安装

在CentOS 6.5安装MySQL 5.6.17,安装到最后一个rpm文件MySQL-server时 安装命令是:rpm -ivh MySQL-server-5.6.17-1.el6.x86_64.rpm 出现了错误信息: error: Failed dependencies: libaio.so.1()(64bit) is needed by MySQL-server-5.6.17-1.el6.x86_64 libaio.so.1(LIBAIO_0.1)(64bit) is needed b

conflicts with file from package mariadb-libs-1:5.5.44-2.el7.centos.x86_64

[[email protected] mysql5.6.34]# rpm -ivh MySQL-server-5.6.34-1.el7.x86_64.rpm warning: MySQL-server-5.6.34-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY Preparing...                          #################################

【MySQL案例】mysql-libs-5.1.73-3.el6_5.x86_64 conflicts with file from package Percona-Server-server

如果遇到mysql-libs-5.1.73-3.el6_5.x86_64 conflicts with file from package Percona-Server-server报错,有两种情况导致这个问题: 1)卸载操作系统预装的mysql-libs包 rpm -qa | grep -i libs | grep -i mysql rpm -e mysql-libs 2)安装Percona-Server-shared-compat-5.5.33-rel31.1.566.rhel6.x86_6

mysql-5.1.73-7.el6.x86_64 conflicts with file from package MySQL-client-5.5.45-1.el6.x86_64

解决方法: 先移除冲突的包,再进行安装. rpm -e MySQL-client-5.5.45 --nodeps