There are two ways to fix missing advisory information in your RHEL-based local repository:
- Manually download and add the advisory information.
- Use the yum-plugin-security plugin to automatically download and add the advisory information.
Manually downloading and adding advisory information
To manually download and add advisory information to your local repository, follow these steps:
- Download the advisory information from the Red Hat website.
- Extract the advisory information into a directory on your local system.
- Create a file called
advisories.xmlin the root directory of your local repository.
- Open the
advisories.xmlfile and add the following XML code:
<!-- List of advisory entries here -->
- For each advisory entry, add the following XML code:
- Save the
- Update your local repository.
To update your local repository, use the following command:
yum clean all yum update
Using the yum-plugin-security plugin
To use the yum-plugin-security plugin to automatically download and add advisory information to your local repository, follow these steps:
- Install the yum-plugin-security plugin:
yum install yum-plugin-security
- Enable the yum-plugin-security plugin in your
- Update your local repository:
yum clean all
The yum-plugin-security plugin will automatically download the latest advisory information from the Red Hat website and add it to your local repository.
Verifying the presence of advisory information in the local repository and endpoints
Check whether the advisory information has been successfully added to your local repository by inspecting the contents of the repository directory. Look for the updateinfo.xml file:
After configuring the endpoints to use the local repository with advisory information, you can test if they can access this information:
find /var/cache/ -iname '*updateinfo.xml*'