While doing yum provides or yum update on AWS Instance of RHEL 8.0 (Ootpa) a "rhui-client-config-server-8" repository giving Failed to Synchronize error.
Steps followed
- yum clean cache (no success)
- yum clean all (no success)
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityWhile doing yum provides or yum update on AWS Instance of RHEL 8.0 (Ootpa) a "rhui-client-config-server-8" repository giving Failed to Synchronize error.
Steps followed
RHEL 8 is based on dnf (dandified YUM), so you would want to use "dnf clean cache" or "dnf clean all" instead of yum. Additionally, if that didn't work, you would want to look in /var/cache/dnf rather than /var/cache/yum.
yum
doesn't make a difference. It will redirect to dnf
and do the same. One can even install yum
or create an alias for it that points at dnf
but even that isn't needed.
Mar 11, 2020 at 1:08
Use sudo yum or elevate to root for aws rhel 8; no need to use dnf (although trying to download a package using dnf did make me realize I didn't have enough permissions).
With RedHat 7 or 8, one way to clean all those caches is to run this command as Sudo
sudo rm -rf /var/cache/yum/*
For those wondering why “yum clean” or “yum clean all” does not clean/remove all caches. It is because “yum clean” or “yum clean all” only removes the cache of repositories which are enabled in /etc/yum.repos.d/*.repo. In other words, cache that are either presently deactivated or from previous RedHat version will not be clear. This is per Yum manual. Which reads: « Note that "all files" in the commands below means "all files in currently enabled repositories". » Source at http://man7.org/linux/man-pages/man8/yum.8.html#CLEAN_OPTIONS
For CentOS 8 run
dnf update -y --releasever=8
Then you can install everything else.
rm -rf /var/cache/yum