Updated on 2024-09-14 GMT+08:00

Checking for Security Updates

  • Run the yum check-update --security command to check for available security updates in the OS.
    [root@localhost ~]# yum check-update --security
    Last metadata expiration check: 0:11:39 ago on Thu 08 Sep 2022 05:30:23 PM CST.
    curl.x86_64			7.79.1-2.h6.hce2				hce2
    gnupg2.x86_64			2.2.32-1.h6.hce2				hce2
    kernel.x86_64			5.10.0-60.18.0.50.h425_2.hce2		        hce2
    unbound-libs.x86_64		1.13.2-3.h2.hce2				hce2
  • Run the yum check-update --sec-severity={Critical,Important,Moderate,Low} command to check for security updates of the specified level.
    Values in the brackets can be any combination of security update levels.
    [root@localhost ~]# yum check-update --sec-severity=Moderate
    Last metadata expiration check: 0:23:57 ago on Thu 08 Sep 2022 05:30:23 PM CST.
    gnupg2.x86_64		       2.2.32-1.h6.hce2					hce2
    python3-unbound.x86_64	       1.13.2-3.h2.hce2					hce2
    unbound-libs.x86_64	       1.13.2-3.h2.hce2					hce2