CentOS Stream 10 is the latest release in the CentOS Stream series, offering a rolling-release model that delivers new packages and improvements quickly. To keep your system secure, stable, and performant, regular updates are essential.
Below are the basic commands you can use to keep your CentOS Stream 10 system up to date, along with explanations.
To update all available packages on your system, run:
dnf update -y
This command detects, downloads, and installs any available package updates. The "-y" option automatically answers “yes” to all confirmation prompts.
Alternatively, you can use:
dnf upgrade -y
Both commands effectively upgrade your system to the latest package versions.
To update only a specific package, use:
dnf update package_name
For example, to update the nginx package:
dnf update nginx
Kernel updates come bundled with system updates. After a kernel update, the system needs to be rebooted. You can reboot the system by running:
reboot
To clean unnecessary cache files after updates, run:
dnf clean all
To see which packages can be updated without installing them, use:
dnf check-update
This command only lists available updates.
By regularly running these commands, you can keep your CentOS Stream 10 system secure, updated, and performing well. Automating update tasks is especially useful in server environments.
You have examined the knowledge base in detail, but if you cannot find the information you need,
Create a Support Ticket