# Required Red Hat repository information is not available in any repository file within the /etc/yum.repos.d/ directory. ## Problem: You receive an error message **"Required Red Hat repository information is not available in any repository file within the /etc/yum.repos.d/ directory"** while installing the patches or scanning the systems on your network computers using Endpoint Central. ## Cause: 1. The **EC agent** validates the Red Hat subscription by checking the entitlement certificates' expiry details. 2. These entitlement details are derived from the repository (`.repo`) files configured on the machine. 3. The EC agent looks for a valid Red Hat repo that meets **all** these criteria: - Only `.repo` files are considered. - Repo name must include **"red hat enterprise linux"**. - Repo details must include **sslclientcert** information. - Beta & debug repositories are **excluded**. 4. If no repository configuration file matches these criteria, then this error occurs. ## Resolution: 1. Verify the **repository configuration files** available in `/etc/yum.repos.d` directory, having entries below: - Standard Subscription ``` [rhel-8-for-x86_64-appstream-rpms] name = Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) baseurl = https://cdn.redhat.com/ enabled = 1 gpgcheck = 1 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release sslverify = 1 sslcacert = /etc/rhsm/ca/.pem sslclientkey = /etc/pki/entitlement/.pem sslclientcert = /etc/pki/entitlement/.pem metadata_expire = 86400 enabled_metadata = 1 ``` - RHUI Subscription ``` [rhel-8-appstream-rhui-rpms] name=Red Hat Enterprise Linux 8 for $basearch - AppStream from RHUI (RPMs) mirrorlist=https:// enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release sslverify=1 sslclientkey=/etc/pki/rhui/.key sslclientcert=/etc/pki/rhui/product/.crt sslcacert=/etc/pki/rhui/.crt ``` 2. If you donot have a standard/RHUI subscription or the mentioned criteria are met but you're still seeing this error, please contact support with the following details: - A zipped archive of your `/etc/yum.repos.d/` directory - Subscription details: 1. Run `sudo subscription-manager list --available --all >> subscription.txt` and share the `subscription.txt` file. 2. Share the `entitlement.txt` file: - **Standard subscription:** `sudo rct cat-cert /etc/pki/entitlement/.pem >> entitlement.txt` - **RHUI subscription:** `sudo rct cat-cert /etc/pki/rhui/product/.crt >> entitlement.txt` 3. Run `sudo subscription-manager status` and share a screenshot 4. [Linux agent logs](https://www.manageengine.com/products/desktop-central/help/patch-management/how-to/upload-logs.html)