LLI Wiki — My Digital Knowledge Base

Find and merge .rpmnew and .rpmsave configuration files

List the .rpmnew and .rpmsave files left by RPM updates and merge them with rpmconf or yum-plugin-merge-conf.

When an RPM package update changes a configuration file that you have modified locally, RPM keeps your version in place and saves the version shipped by the package as a .rpmnew file. In some cases the previous version is kept as a .rpmsave file. This article explains how to find these files and merge them.

Find the .rpmnew and .rpmsave files

find / -print | egrep "rpmnew$|rpmsave$"

Compare and merge

To compare a file manually with its .rpmnew version, use vimdiff:

vimdiff /etc/example.conf /etc/example.conf.rpmnew

To merge configuration files interactively, install rpmconf and the yum plugin yum-plugin-merge-conf:

yum install -y rpmconf
yum install -y yum-plugin-merge-conf

Merge yum repositories

An external article describes how to merge yum repositories: How to merge / update Red Hat Linux yum repositories

To list the enabled repositories and their base URLs:

yum repolist
yum-config-manager | egrep "baseurl|ui_id"

Notes

Mastodon LLIMastodon SocialFosstodon