I am not able to install gcc on my network switch (64-bit machine) for an application that needs to be compiled on the switch (running the following redhat version.)
[admin@sw ~]$ cat /etc/redhat-release cat /etc/redhat-release AlmaLinux release 9.3 (Shamrock Pampas Cat)[admin@sw ~]$ sudo dnf update -y sudo dnf update -y Dependencies resolved.Nothing to do.Complete![admin@sw ~]$ sudo dnf install gccsudo dnf install gccError: Problem: cannot install both mpfr-3.1.1-4.el7.x86_64 from base and mpfr-4.1.0-7.el9.x86_64 from @System - mpfr-4.1.0-7.el9.i686 from @System does not belong to a distupgrade repository - package gcc-4.8.5-44.el7.x86_64 from base requires libmpfr.so.4()(64bit), but none of the providers can be installed - package gawk-5.1.0-6.el9.i686 from @System requires libmpfr.so.6, but none of the providers can be installed - conflicting requests - problem with installed package gawk-5.1.0-6.el9.i686(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)[admin@sw ~]$ sudo dnf install gcc --allowerasingError: Problem: The operation would result in removing the following protected packages: sudo(try to add '--skip-broken' to skip uninstallable packages)[admin@sw21 ~]$ If you see there are no el7 packages here: [admin@sw ~]$ rpm -qa | grep mpfr rpm -qa | grep mpfr mpfr-4.1.0-7.el9.i686mpfr-4.1.0-7.el9.x86_64
What am I missing?