×
×
×
×

Red Hat Linux Patching

Configure Red Hat Linux settings, and install patches manually or automatically, using Patch Manager Plus.

Overview

Patch Management for Red Hat Enterprise Linux enables administrators to manage all security and non-security patches that are released by the Red Hat Security Advisory (RHSA), for Red Hat subscribed machines and servers. It enables organizations to identify, install, and audit Red Hat package updates, helping enterprises maintain a high level of security across Linux endpoints.

Note
For patching Red Hat, it is recommended that all the managed endpoints have Standard subscriptions for Red Hat Enterprise Linux.

Configuring Red Hat Linux settings for patching

This section provides the prerequisites to patch Red Hat systems and instructions to configure Red Hat settings.

Prerequisites to patch Red Hat Linux server and machines

  • Ensure that the nominated Red Hat machine has a Standard Red Hat Enterprise Linux subscription that points to Red Hat's CDN.
  • Configure proxy settings in YUM and ensure https://cdn.redhat.com/ is accessible from the nominated system.
  • Ensure that https://access.redhat.com/ is accessible from the central server.
  • Ensure the External Download Tool is available on the Central Server. The patch download in a Red Hat Linux environment is triggered through an external download tool, located under Server Installed Directory → Lib → Download Tool.
  • Install agents on the RHEL systems to be patched.
  • Allow your proxy to download .jar and .rpm files.
  • Verify that you have purchased sufficient licenses for your patching requirements.
  • Ensure that the Red Hat machines have at least 20GB of space in the /var/cache directory for the offline meta sync.
Note
In order to attach or register the license to Red Hat, all managed Red Hat machines must connect to the internet at least once and authenticate with the Red Hat Subscription Management system. Only then can the machine's subscription status be validated successfully. Apart from this instance, machines (other than the nominated machine) don't require an active internet connection.

System nomination steps for RHEL patch management

1. Provide Red Hat account information

  • Provide the credentials using which you have purchased the Red Hat subscription. This information is required to validate and download all the .rpm packages for your network.
  • Ensure this credential has permissions to download packages from the Red Hat portal to the server machines.

2. System nomination

System Nomination is a process of hand-picking one computer each for these categories — Server, Desktop, and Workstation — in your network. The selected systems are used to download the meta files required by the YUM tool for patching.

Red Hat Linux uses YUM (Yellow dog Updater Modified) as its package management solution. YUM provides all dependencies required to deploy a patch.

Prerequisites
  • Verify that the UEMS agent is installed on the computer.
  • Check that the nominated system has an active Red Hat subscription.
  • Configure proxy in YUM such that https://cdn.redhat.com/ is accessible from the nominated system.
  • Ensure that it has an active internet connection without any firewall restrictions. Only the nominated machine requires an active internet connection.
  • Ensure that there is at least 20GB free space for the cache directory (default location: /var).
  • Ensure that the machine has minimal downtime.
  • The nominated machine should have the following specifications: RAM size of 4GB or higher, and a processor of Intel Core i3 (2 Core / 4 Thread) 2.0 GHz or higher.

Steps to follow for system nomination:

  1. Provide the name of the computer nominated for the Server category.
  2. Provide the name of the computer nominated for the Desktop category.
  3. Provide the name of the computer nominated for the Workstation category.

3. Whitelist domains

The following domains need to be whitelisted for the Red Hat packages to be downloaded:

  • https://access.redhat.com
  • https://cdn.datatables.net
  • https://sso.redhat.com
  • https://access.cdn.redhat.com
  • https://static.redhat.com
  • https://www.redhat.com
  • https://cdn.jsdelivr.net
  • https://code.jquery.com/

Install Red Hat Linux patches manually

To install patches manually, first log in to the Patch Manager Plus console and then follow the steps given below:

  1. Click on the Deployment tab → Manual Deployment.
  2. Select Install/Uninstall Patch and choose your desired platform (Windows / Mac / Linux). As you are going to install Red Hat Linux patches, select Linux.
  3. Give a suitable Name and Description to the configuration you are creating to install the patch.
  4. Add the patches that you wish to install on your Linux systems. Click on Add Patches, and a window pops up showing a separate section for the patches missing in your network. You can filter them based on the type of application or the type of patch update, such as security or non-security patches. After selecting the patches that you wish to install, click OK.
  5. Optionally, schedule when you wish to install the patches. For example, if you don't want the installation to happen on business days, click the Install After checkbox and give a suitable date and time after which the patch updates will get installed. You can also click Do not apply this configuration after the time specified below and give the expiry date and time after which the patch installation task is aborted.
  6. Configure the Deployment Settings by applying a deployment policy that suits your enterprise — for example, the Weekend Policy — or create a policy of your own by clicking Create/Modify Policy.
  7. Define your target computers based on Remote Office or Domain. You can select multiple targets by clicking the add button, and further filter computers by categories such as Domain, IP Address, IP Range, or Operating System. You can also exclude computers from deployment — for example, a critical server where patching would cause downtime — by specifying its IP address under Exclude Target.
  8. Optionally, configure the Execution Settings. Selecting Retry this configuration on failed targets redeploys patches on failed targets for a specified number of times, and you can configure retries during startup or refresh.
  9. To receive notifications on updates to this configuration, select Enable Notification and enter your email address. You can also configure notification settings to receive updates at regular intervals.
  10. Click Deploy or Deploy Immediately to install patches on your Linux systems.

Install Red Hat Linux patches automatically

The entire process of patching Red Hat Linux can be automated using Patch Manager Plus. Automate Patch Deployment handles the entire process, from scanning systems for missing patches, to downloading them from the Red Hat Linux vendor site, up to deploying the patch updates on your systems.

To install patches automatically, log in to the Patch Manager Plus console and follow the steps given below:

  • Click on the Deployment tab → Automate Patch Deployment.
  • Click Automate Task and choose your desired platform: Windows, Mac, or Linux. Select Linux, since you are installing patches for your Linux systems.

There are four stages of creating an APD task:

  1. Select Applications: Select the Linux and third-party updates that you want to install based on their severities.
  2. Choose Deployment Policy: Apply any deployment policy listed, or create a policy of your own to suit your business needs.
  3. Define Target: Select your target computers by Domain or Remote Office. This deployment policy will be applied to the specified target computers.
  4. Configure Notifications: Enable email notifications to receive updates on this automated deployment task.

Once you click Save, your APD task is created.

Architecture and workflow for Red Hat patching

This section explains the processes involved in patching Red Hat systems, with the help of architecture diagrams.

1. Cache creation

Red Hat cache creation
Red Hat cache creation

Steps involved in the process of cache creation:

  1. The Patch Manager Plus server detects the available Red Hat versions and architecture in all the systems in your network.
  2. The Nominated System (for the Server category) downloads the RH Cache Plugin from the server. The plugin resides on the Nominated System.
  3. The RH Cache Plugin on the Nominated System downloads required meta files for all the other systems in the network (belonging to the Servers category) from the Red Hat portal, using the YUM tool.
  4. The downloaded files are then uploaded to the server.
  5. All the other systems in the network receive the data from the server. Each system uses the metadata to detect its missing patches and dependencies.
Note
The above steps refer to the Servers category. The same steps apply to the Workstations and Desktops categories as well.

2. Scan and deployment

Red Hat scan and deployment
Red Hat scan and deployment

Steps involved in the process of scanning and patch deployment:

  1. The Central Server syncs the External Download Tool and supported patches information from the central Patch Repository.
  2. The server initiates a scan on all the Red Hat systems and detects the missing patches.
  3. The External Download Tool downloads the patches and dependencies from the Red Hat portal using the account credentials provided.
  4. The downloaded files are replicated from the Central Server to the Distribution Server(s), and remote office agents download the files from the Distribution Server; other agents download the files directly from the Central Server.
  5. Once patches are downloaded and available, deployment is carried out.

Source and domain details

The Patch Manager Plus server collects patch information from the Red Hat security advisories site and stores it in cache. This cache contains all the patch bulletins for Red Hat Linux. The system you have nominated downloads the RH Cache Plugin, and bulletins are pulled from this source.

Red Hat Linux patches are downloaded from the domain below. The RH Cache Plugin on the Nominated System downloads all patches from this domain using the YUM tool. For Enterprise OS management, patches are downloaded from this domain.

The downloaded files are sent to the Patch Manager Plus server, which connects to the External Download Tool and the online patch database and scans all the systems in your network. The External Download Tool downloads all the patches from the Red Hat portal, and every system in the network then downloads the file from the server so that the missing patches can be deployed.

Related