Search My Techie Guy

Wednesday, August 16, 2017

Error while using rpm to install a package on CentOS 6 - file x from install of xx conflicts with file from package xxx

Summary: 

File x from install of xx conflicts with file from package xxx
.
This happened when i was trying to install OpenSSL on CentOS release 6.3

Problem or Goal: 


The problem here is Conflicting Files. If you attempt to install a package that contains a file which has already been installed by another package, the following is displayed:



Cause: 

This means OpenSSL was already installed on this server

[root@localhost tmp]# openssl version
OpenSSL 1.0.0-fips 29 Mar 2010
[root@localhost tmp]# 

Solution: 

To make RPM ignore this error, use the 
--replacefiles option:
This will actually upgrade or downgrade your installation depending on the version of the installation package you are using!

[root@localhost tmp]# rpm -ivh --replacefiles openssl10-libs-1.0.1e-1.ius.centos6.x86_64.rpm 
warning: openssl10-libs-1.0.1e-1.ius.centos6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 9cd4953f: NOKEY
Preparing...                ############################# [100%]

   1:openssl10-libs         ############################# [100%]

Problem Solved?

Yes.

[root@localhost tmp]# openssl version
OpenSSL 1.0.1e 11 Feb 2013

[root@localhost tmp]#

No comments: