Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 2 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

 
discard

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