• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

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

by admin

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

Filed Under: CentOS/RHEL 5, CentOS/RHEL 6, CentOS/RHEL 7, Linux

Some more articles you might also be interested in …

  1. fakeroot Command Examples in Linux
  2. ajson – Executes JSONPath on JSON objects (Command Examples)
  3. size Command Examples in Linux
  4. smbpasswd: command not found
  5. iotop Command Examples in Linux
  6. mknod: command not found
  7. lvreduce Command Examples in Linux
  8. “az storage table” Command Examples
  9. Examples of using tcpdump command for network troubleshooting
  10. How to make a LED flash with the Raspberry Pi

You May Also Like

Primary Sidebar

Recent Posts

  • Chezmoi: A multi-machine dotfile manager, written in Go
  • cheat: Create and view interactive cheat sheets on the command-line
  • chars: Display names and codes for various ASCII and Unicode characters and code points
  • chafa: Image printing in the terminal

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright