17 Jan

CentOS: “Conflicts with file from package python-crypto-2.0.1-22.el6.x86_64”

Oliver Krautscheid Oct 19, 2015
0 777

This is another CentOS report to help fellow CentOS users. Here’s a workaround for the error “Conflicts with file from package”.

Why This Error Occurs

When you receive this error, you most likely tried to build a package using the RPM command. RPM commands allow you to compile programs not available on your systems. However, at times yum has previously installed a version of the program so it is always a good idea to first try installing a program using this command:

yum install package_name


yum install python-crypto

However, this depends on your CentOS repo whether this will work or not. If you are new to CentOS you may want to read our guide how to install the EPEL Repo which will give you a basic idea of what you have to do to expand your yum base (meaning: to include more packages from external sources).

The Workaround

If your current repo cant install a package and you already downloaded EPEL and Atomic repo, then I suggest you download the RPM from the source and compile it using rpm.

rpm -ivh package.rpm

Now when you do that and there is a previous installation you will get the error “Conflicts with file from package xyz”

Then you can use the following parameter:

rpm -ivh --replacefiles

–replacefiles will help you to replace the previous installation. Make sure you know what you’re doing as this could break something and/or result in “dependency hell” (meaning some programs will stop working because they depended on a previous version) depending on what kind of package you are trying to upgrade.

About Us

Webmaster .Net is your all-in-one resource for blogging tips, system administration guides, industry news and a growing community of webmasters.

Can't find something or want to tip us?Contact@webmaster.net

Bulls and Bears

Leave a Comment

Your email address will not be published.

Webmaster Tutorials, Wordpress
0 shares1227 views

WordPress SQL Query: Select And Delete Posts Between Two Dates

Oliver Krautscheid - Apr 08, 2017

If you are wondering how to delete posts for a certain date, you will need to know how Wordpress stores…

Advertising and Ad Networks, Copywriting
0 shares924 views

15 Tips For Increasing Facebook Ads CTR – Full Guide [2017 Update]

Cam Connor - Mar 30, 2017

In this article, we'll talk a lot about how you can write quality text ads on Facebook Ads to get…

Webmaster Tutorials
0 shares1616 views

10 Steps To Configure Nginx For WordPress, Drop Varnish And Cut Your CPU Load By 50%

Oliver Krautscheid - Oct 10, 2016

Are you using Varnish on your Wordpress blog? Possibly the Varnish script by Unixy? Great! Get rid off it. Here's…

Follow Us And get latest news

© 2016 Webmaster.Net - Property of Peakstone Media Ltd. - All rights reserved. | Privacy Policy | DMCA | Contact Us | Advertise