Updated on 2025-04-15 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:13:32 ago on Wed 26 Mar 2025 11:08:19 AM CST.
    
    c-ares.x86_64                                 1.18.1-1.r5.hce2                            hceversion                      
    curl.x86_64                                   7.79.1-2.r34.hce2                           hceversion                      
    dnsmasq.x86_64                                2.86-1.r20.hce2                             hceversion                      
    expat.x86_64                                  2.4.1-5.r8.hce2                             hceversion
    …
  • 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:15:20 ago on Wed 26 Mar 2025 11:08:19 AM CST.
    
    c-ares.x86_64                                    1.18.1-1.r5.hce2                         hceversion                      
    curl.x86_64                                      7.79.1-2.r34.hce2                        hceversion                      
    expat.x86_64                                     2.4.1-5.r8.hce2                          hceversion                      
    gnutls.x86_64                                    3.7.2-2.r31.hce2                         hceversion                      
    gnutls-utils.x86_64                              3.7.2-2.r31.hce2                         hceversion
    …