Chapter 1
System Management
Course: Comptia Linux Xk0 006
Subject: Comptia Linux Xk0 006
Chapter: System Management
Software packages often come with configuration files that define how services behave. Managing these configurations is crucial when upgrading software, securing services, or customizing behavior for performance and reliability.
1. Updating Configuration Files
When updating software packages via tools like dnf, yum, or apt, the system must handle pre-existing configuration files. If these files have been modified locally, package managers avoid overwriting them blindly. Instead, they generate special files to preserve changes or offer updated defaults.
.rpmnew – New Default Configuration
When it’s created:
- A new version of the config file is included in the package.
- Your current file is left intact.
- The new version is saved with the .rpmnew extension.
Example:
bash
/etc/ssh/sshd_config.rpmnew
Scenario: You’ve customized /etc/ssh/sshd_config, and an SSH package update includes new options. Instead of overwriting your file, the system installs the default update as sshd_config.rpmnew.