RHEL / CentOS: yum Lists / Installs Only Security Updates
- You can easily find out security patches related information using yum-security plugin. This plugin adds the options --security, --cve, --bz and --advisory flags to yum and the list-security and info-security commands. The options make it possible to limit list/upgrade of packages to specific security relevant ones. The commands give you the security information.
- Install Plugin
- Type the following command:
- # yum install yum-security
- How Do I Display Available Security Updates?
- Type the following command:
- # yum list-security
- To list all updates that are security relevant, and get a reutrn code on whether there are security updates use:
- # yum --security check-update
- To get a list of all BZs that are fixed for packages you have installed use:
- # yum list-security bugzillas
- To get the information on advisory RHSA-2009:1148-1 use:
- # yum info-security RHSA-2009:1148-1
- To get an info list of the latest packages which contain fixes for Bugzilla 3595; CVE # CVE-2009-1890 and advisories RHSA-2009:1148-1, use:
- # yum --bz 3595 --cve CVE-2009-1890 --advisory RHSA-2009:1148-1 info updates
- How Do I Install All The Security Updates Only?
- Type the following command to download and install all the available security updates:
- # yum update --security
转载于:https://blog.51cto.com/missuniverse110/373490