Installing Security Vulnerabilities with yum on CentOS/RHEL 5,6,7 (Cheat Sheet)

Here is a short note on List of Commands to Install Security Vulnerabilities with yum. To get more information man page of yum-security is a good reference.

 

# man yum-security

 

Installing yum-security package

 

First Check if you have the yum-security(for RHEL 5) or yum-plugin-security (for RHEL 6,7) package installed on your system.

 

For CentOS/RHEL 5:

# rpm -qa |grep -i yum-security

 

If yum-security is not installed, install it using below command.

# yum install yum-security

 

For CentOS/RHEL 6 and 7:

# rpm -qa |grep -i yum-plugin-security

 

If yum-plugin-security is not installed, install it using below command:

# yum install yum-plugin-security

 

Listing Available Erratas

 

To list all available erratas:

 

For CentOS/RHEL 5:

# yum list-sec 

 

For CentOS/RHEL 6 and 7:

# yum updateinfo list available

 

Listing Available/Installed security updates

 

To list all available security updates:

 

For CentOS/RHEL 5:

# yum list-security --security

 

For CentOS/RHEL 6 and 7:

# yum updateinfo list security all

 

To list currently installed security updates

 

# yum updateinfo list security installed

 

To list all available security updates with verbose

 

For CentOS/RHEL 5,6 and 7:

# yum info-sec

 

Installing Security Packages

 

To install all security package:

 

For CentOS/RHEL 5,6 and 7:

# yum update --security

 

To install Package that have security Errata:

 

For CentOS/RHEL 5,6 and 7:

# yum update-minimal --security

 

To install Package that have security CVE:

 

For CentOS/RHEL 5,6 and 7:

# yum update --cve [CVE]

 

To install one specific advisory:

 

For CentOS/RHEL 5,6 and 7:

# yum update --advisory=ELBA-2016-2319

 

Was this answer helpful? 0 Users Found This Useful (0 Votes)