CentOS Stream 10 Update Commands
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.
1. Update All Packages
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.
2. Update a Specific Package
To update only a specific package, use:
dnf update package_name
For example, to update the nginx package:
dnf update nginx
3. Kernel Update and Reboot
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
4. Clear DNF Cache (Optional)
To clean unnecessary cache files after updates, run:
dnf clean all
5. List Available Updates
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.
Can't find the information you're looking for?
You have examined the knowledge base in detail, but if you cannot find the information you need,
Create a Support Ticket-
How to Open Ports in Windows?
297 2
-
How to Grant Windows Administrator Privileges?
222 0
-
How to install Webmin on Ubuntu?
874 2
-
Linux SSH Terminal Commands and Explanations
784 3
-
CentOS Stream 10 Update Commands
843 1
-
CentOS Stream 9 Update Commands
1230 2
-
CentOS Stream 8 Update Commands
666 0
-
What is FreeBSD?
846 2
-
Out: 452 4.3.1 Insufficient system storage
760 2
-
Turning Off Automatic Updates in Windows Operating Systems
875 0