Unable to use YUM. RHEL 8.2 server hosted in Azure

I have a Red Hat server hosted in Azure and when I try to use yum to install software or do a system update I get the below error,

Errors during downloading metadata for repository ‘rhui-rhel-8-for-x86_64-baseos-rhui-rpms’:

The system has been registered in subscription manager.

Answer

Try:
yum clean all
rm -f /var/lib/rpm/__db*
rpm –rebuilddb

Attribution
Source : Link , Question Author : redhatsamurai , Answer Author : Jose Vazquez

Leave a Comment