Regular updates not only patch security holes but also introduce new features and performance improvements.
Package Management with DNF
DNF (Dandified YUM) handles software installations, removals, and upgrades on CentOS Stream 8 and similar distributions. Before applying updates, always list the packages that have newer versions available.Checking for Available Updates
Run the following command to see which packages can be updated:Upgrading All Out‐of‐Date Packages
To perform a full system upgrade, use:- Install: New dependencies required by updated packages
- Upgrade: Packages being replaced with newer versions
y and press Enter to proceed.
Pay attention to the download size and package count. Large upgrades on production servers may require scheduled maintenance windows.
Reboot After Core Updates
Upgrading the kernel, system services, or libraries often requires a reboot. To apply these changes, reboot the system:Always verify critical services after rebooting to ensure they’ve started correctly.
Summary of Common Commands
| Command | Purpose |
|---|---|
dnf check-update | List all packages with available updates |
sudo dnf upgrade | Upgrade every out‐of‐date package |
sudo reboot | Restart the system to load core updates |