Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to replace a file belonging to an installed RPM with a different RPM (a hotfix RPM) that includes the same file, using YUM.

YUM does not provide the --replacefiles option (available in the rpm command) and hence fails due to the conflict between the 2 packages containing the same file.

Is there an option in YUM that will address this ? Or a workaround to do such installations ?

share|improve this question
up vote 3 down vote accepted

Download the rpms and do the install with the rpm command and the local files. yumdownloader is part of yum-utils on RHEL and makes it easy to download rpms from a yum repo.

Or, you can run the rpm command directly using urls for the RPMs instead of local copies of the RPMs.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.