There are two ways to fix missing advisory information in your EL-based local repository:
Pre-requisite: Please check if the local repository is advisory based using the following two commands:
For Security Advisories
dnf updateinfo list security all
For Bug Fixes
dnf updateinfo list bugfixes all
Automatic: 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:
dnf install yum-plugin-security
- Enable the yum-plugin-security plugin in your
/etc/yum.conf
file:
plugins=security
- Update your local repository:
dnf clean all
dnf update
The yum-plugin-security plugin will automatically download the latest advisory information from the Red Hat website and add it to your local repository.
Manual: Downloading and adding advisory information
Note: Take a backup of local repo server
Steps to Download and Integrate updateinfo.xml for a Local Repository
AppStream
- Download the updateinfo.xml
- Place the file in path for example
/var/www/html/rhel8/AppStream/repodata/
3. Update the Repository Metadata by running command
modifyrepo /var/www/html/rhel8/Appstream/repodata/updateinfo.xml /var/www/html/rhel8/AppStream/repodata/
BaseOS
- Download the updateinfo.xml
- Place the file in path for example
/var/www/html/rhel8/BaseOS/repodata/
3. Update the Repository Metadata by running command
modifyrepo /var/www/html/rhel8/BaseOS/repodata/updateinfo.xml /var/www/html/rhel8/BaseOS/repodata/
Verify the Advisory information: Once the repository metadata is updated, you can verify the advisory info by running commands
dnf clean all
dnf updateinfo
Comments
0 comments
Please sign in to leave a comment.