1.Error
[root@localhost ~]# yum install -y golang Last metadata expiration check: 1:31:16 ago on Sun 20 Feb 2022 08:56:04 PM JST. Error: Problem: package golang-bin-1.16.12-1.module_el8.5.0+1051+7eeb051e.x86_64 requires /usr/bin/gcc, but none of the providers can be installed - package gcc-8.5.0-3.el8.x86_64 requires glibc-devel >= 2.2.90-12, but none of the providers can be installed - package gcc-8.5.0-4.el8_5.x86_64 requires glibc-devel >= 2.2.90-12, but none of the providers can be installed - package glibc-devel-2.28-164.el8.i686 requires libm.so.6, but none of the providers can be installed - package glibc-devel-2.28-164.el8.i686 requires libpthread.so.0, but none of the providers can be installed - package glibc-devel-2.28-164.el8.i686 requires libdl.so.2, but none of the providers can be installed - package glibc-devel-2.28-164.el8.i686 requires librt.so.1, but none of the providers can be installed - package glibc-devel-2.28-164.el8.i686 requires libutil.so.1, but none of the providers can be installed - package glibc-devel-2.28-164.el8.i686 requires libresolv.so.2, but none of the providers can be installed - package glibc-devel-2.28-164.el8.i686 requires libanl.so.1, but none of the providers can be installed - package glibc-devel-2.28-164.el8.i686 requires libBrokenLocale.so.1, but none of the providers can be installed - package glibc-devel-2.28-164.el8.i686 requires libthread_db.so.1, but none of the providers can be installed - package glibc-devel-2.28-164.el8.x86_64 requires glibc = 2.28-164.el8, but none of the providers can be installed - glibc-2.28-164.el8.i686 has inferior architecture - cannot install both glibc-2.28-164.el8.x86_64 and glibc-2.28-174.el8.x86_64 - package golang-1.16.12-1.module_el8.5.0+1051+7eeb051e.x86_64 requires golang-bin = 1.16.12-1.module_el8.5.0+1051+7eeb051e, but none of the providers can be installed - package glibc-gconv-extra-2.28-174.el8.x86_64 requires glibc(x86-64) = 2.28-174.el8, but none of the providers can be installed - cannot install the best candidate for the job - problem with installed package glibc-gconv-extra-2.28-174.el8.x86_64 (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
2.yum install -y golang –allowerasing –nobest
[root@localhost ~]# yum install -y golang --allowerasing --nobest ・・・ Downgraded: glibc-2.28-164.el8.x86_64 glibc-common-2.28-164.el8.x86_64 glibc-langpack-en-2.28-164.el8.x86_64 libgomp-8.5.0-4.el8_5.x86_64 Installed: binutils-2.30-108.el8_5.1.x86_64 cpp-8.5.0-4.el8_5.x86_64 gcc-8.5.0-4.el8_5.x86_64 glibc-devel-2.28-164.el8.x86_64 glibc-headers-2.28-164.el8.x86_64 golang-1.16.12-1.module_el8.5.0+1051+7eeb051e.x86_64 golang-bin-1.16.12-1.module_el8.5.0+1051+7eeb051e.x86_64 golang-src-1.16.12-1.module_el8.5.0+1051+7eeb051e.noarch isl-0.16.1-6.el8.x86_64 kernel-headers-4.18.0-348.7.1.el8_5.x86_64 keyutils-libs-devel-1.5.10-9.el8.x86_64 krb5-devel-1.18.2-14.el8.x86_64 libcom_err-devel-1.45.6-2.el8.x86_64 libkadm5-1.18.2-14.el8.x86_64 libmpc-1.1.0-9.1.el8.x86_64 libselinux-devel-2.9-5.el8.x86_64 libsepol-devel-2.9-3.el8.x86_64 libverto-devel-0.3.0-5.el8.x86_64 libxcrypt-devel-4.1.1-6.el8.x86_64 openssl-devel-1:1.1.1k-5.el8_5.x86_64 pcre2-devel-10.32-2.el8.x86_64 pcre2-utf16-10.32-2.el8.x86_64 pcre2-utf32-10.32-2.el8.x86_64 zlib-devel-1.2.11-17.el8.x86_64 Removed: glibc-gconv-extra-2.28-174.el8.x86_64 Complete!