Install security updates
In Red Hat Enterprise Linux, you can install a specific security advisory and all available security updates. You can also configure the system to download and install security updates automatically.
Install all available security updates Copy linkLink copied!
Install all available Red Hat security updates by using the DNF utility. This helps patch all known vulnerabilities and quickly brings the system into full compliance.
Before you begin Copy linkLink copied!
- A Red Hat subscription is attached to the host.
Procedure Copy linkLink copied!
Results Copy linkLink copied!
- Verify that no remaining security updates are available:
# dnf updateinfo list updates securityIf the command returns no output, all available security updates are installed.
Install a security update provided by a specific advisory Copy linkLink copied!
Install a security update associated with a specific advisory ID by using the DNF utility. This enables targeted patching of critical vulnerabilities without updating all packages.
Before you begin Copy linkLink copied!
- A Red Hat subscription is attached to the host.
- You know the ID of the security advisory that you want to update.
For more information, see the Identifying the security advisory updates section.
About this task Copy linkLink copied!
In certain situations, you should install only specific updates. For example, if a specific service can be updated without scheduling downtime, you can install security updates for that service only and install the remaining updates later.
Procedure Copy linkLink copied!
Results Copy linkLink copied!
- Verify that the advisory is now listed as installed:
# dnf updateinfo list security --installedThe output includes the advisory ID that you installed.
Install security updates automatically Copy linkLink copied!
Configure the dnf-automatic tool to download and install security updates automatically. Automating this task helps ensure that your systems remain protected against newly discovered threats without manual intervention.
Before you begin Copy linkLink copied!
- A Red Hat subscription is attached to the host.
- The
dnf-automaticpackage is installed.
About this task Copy linkLink copied!
See the dnf-automatic(8) man page on your system for more information.
Procedure Copy linkLink copied!
Results Copy linkLink copied!
- Verify that the timer is enabled:
# systemctl status dnf-automatic-install.timer