After installing a new version of a service, you notice that some of your custom configurations are no longer in effect. The service in question utilizes .rpmsave and .rpmnew files during upgrades. Which of the following actions should you take to BEST ensure that your previous configurations are incorporated into the new service version?
Replace the new configuration file with the file that has the .rpmsave extension.
Manually compare the .rpmsave file with the .rpmnew file and integrate custom configurations as needed, then remove the .rpmnew suffix.
Rename the .rpmnew file to overwrite the current configuration file without manual checks.
Ignore the .rpmnew and .rpmsave files as the service will automatically merge the configurations.
During an RPM upgrade, configuration files are handled conservatively. If the existing file was locally modified and is flagged %config(noreplace), RPM leaves that customized file in place and drops the package's updated default as filename.rpmnew. If the file is not marked noreplace (or is being moved), RPM renames the current file to filename.rpmsave and writes the new default over the original name. To preserve both your custom settings and any new directives required by the updated package, you should compare the .rpmsave (or the current live file) with the .rpmnew version, merge the relevant differences, and then replace the live configuration with the consolidated result-removing the suffix afterward. Simply overwriting one file with the other risks either discarding customizations or omitting directives needed by the newer software.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of `.rpmsave` and `.rpmnew` files?
Open an interactive chat with Bash
How should you manually compare `.rpmsave` and `.rpmnew` files when upgrading a service?
Open an interactive chat with Bash
What happens if you overwrite the `.rpmnew` file with `.rpmsave` without merging changes?