• 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

CentOS / RHEL 6 : How to list or install only security updates with yum

by admin

Question: Is it possible to limit yum so that it lists or installs only security updates? How to patch the system only with security errata?

Install the yum-security plugin

It is now possible to limit yum to install only security updates (as opposed to bug fixes or enhancements) by installing the yum-security plugin. Contrary to RHEL 7, in RHEL 6 the yum-security plugin is not part of yum. So to install the plugin use :

# yum install yum-plugin-security

listing available erratas

To list all available erratas without installing them, run:

# yum updateinfo list available

Listing available security updates

To list all available security updates without installing them, run:

# yum updateinfo list security all
# yum updateinfo list sec

To list all available security updates with verbose descriptions of the issues they apply to:

# yum info-sec

Listing currently installed security updates

To get a list of the currently installed security updates this command can be used:

# yum updateinfo list security installed

Installing available security updates

Run the following command to download and apply all available security updates :

# yum -y update --security
NOTE: It will install the last version available of any package with at least one security errata thus can install non-security erratas if they provide a more updated version of the package.

To only install the packages that have a security errata use

# yum update-minimal --security -y

For more commands consult the manual pages of yum-security with

# man yum-security

Filed Under: CentOS/RHEL 6, Linux

Some more articles you might also be interested in …

  1. aspell Command Examples in Linux
  2. Maintaining Linux filesystems using “fsck” and “tune2fs”
  3. lxterminal: command not found
  4. dconf Command Examples (Cheat Sheet)
  5. chrt : command not found
  6. fsck: command not found
  7. getopt Command Examples in Linux
  8. How to tar, untar files and view contents of tar file under Linux
  9. nmcli networking Command Examples
  10. semanage Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright