Keeping your Linux system up-to-date is a very critical task, especially when it comes to installing security updates. This ensures that your system stays safe, stable, and keeps you on top of the latest security threats.
In this short and precise article, we will explain how to install security system updates on a CentOS 8 Linux system. We will show how to check for system updates (for all installed packages), updates for a specific package, or security updates only. We will also look at how to install updates either for a specific package, for all installed packages, or security updates only.
First, log into your system and open a terminal window, or if it is a remote system, access it via ssh. And before you move any further, take note of your the current kernel version on your system:
# uname -r

Checking Security Updates for CentOS 8 Server
To check if there are any updates available, issue the following command on the command prompt. This command non-interactively checks whether there are any updates are available for all packages on your system.
# dnf check-update

If you want, you can check updates for a specific package, provide the package name as shown.
# dnf check-update cockpit

Checking Security Updates for Installed Software Packages
You can determine if there are security-related updates or notices available, using the following command. It will show a summary of security notices displaying the number of updates in each category. From the screenshot below, there is 1 security update available for us to install on the test system.
# dnf updateinfo

To show the actual number of security packages with updates for the system, run the command that follows. Although there is only 1 security update as indicated in the output of the previous command, the actual number of security packages is 3 because the packages are related to each other:
# dnf updateinfo list sec OR # dnf updateinfo list sec | awk '{print $3}'

Updating a Single Package on CentOS 8
After checking for updates, if there is any available updates, you can install it. To install updates for a single package, issue the following command (replace the cockpit with the package name):
# dnf check-update cockpit

In the same manner, you can also update a group of packages. For example, to update your development tools, run the following command.
# dnf group update “Development Tools”
Updating CentOS 8 System Packages
Now to update all of your installed packages to the latest versions, run the following command. Note that this may not be ideal in a production environment, sometimes updates may break your system – note of the next section:
# dnf update

Installing Security Updates Only on CentOS 8
As mentioned above, running a system-wide update of packages may not be ideal in a production environment. So, you can only install security updates to secure your system, as shown.
# dnf update --security

You can also install security updates automatically using our following guide.
That’s all for now! Always know how to protect yourself from known vulnerabilities. And it all starts with keeping your Linux system up-to-date. If you have any questions or comments to share, reach us via the comment section below.
Dear sirs,
thanks very nice for your tutorial ;
But I want to know Difference oracle linux with centos.
and how clustering-system on linux centos?
thank you very much
After reading this installation guide,am now thinking of moving away from Ubuntu Desktop to CentOS as my primary OS.
I am not getting the screen from #19 to customize the install when using a i386 live CD or live DVD.
Thank you so much. Now, I have installed CentOS 6.4 successfully in my machine with dual boot.
i have windows8 on my laptop and i have installed centos in my laptop along with window8 but during my boot up it is not showing centos option please give tell me the solution
please help me.. my work is gone.. this centos is bullshit
!!!
What kind of help you looking for, can you describe here.
Till snapshot 22 my installation was correct. But dint get the login screen as shown in the snapshots. I tried ssh -X and startx commands but dint work.
here installing centos there default selection is “minimal” and this screen shot shown select a web server:” please remember ,that no need to select “minimal” r “web server”
here we have to select “DESKTOP” … that only select for gui coming on centos otherwise command mode only comming … thanking u ..
done upto step 22, after reboot following
black screen comes , says to login, i m able to root login,,
help to get rid of black screen
How much RAM you have?
I installed 6.4 in my desktop. when i start my PC after boot menu i lost my display.
Please tell me what i do?
What is amount of Memory given for CentOS
Try given atleast 1GB of RAM