RPM install fails to find perl-List-MoreUtils on CentOS 8
I have the following pre-requisites installed on a fully patched minimal CentOS 8 install:
yum install epel-release -y
yum config-manager --enable PowerTools
However, from the pre-requisites repo page subscription-manager does not exist in CentOS (it is a Red Hat only package) so this command fails:
subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms
I found documentation that shows that perl-List-MoreUtils should be available in the PowerTools repo in CentOS 8 but a "yum whatprovides" perl-List-MoreUtils fails to find it with PowerTools enabled.
I am trying to do this in automation so I want to make sure that dnf can maintain the install once it is running in production. If I manually install perl-List-MoreUtils from the individual rpm as a local file, it will not be updated down the road so I would much prefer to pull from a repo.
RPM for CentOS 8 won't install due to missing dependency
Re: RPM for CentOS 8 won't install due to missing dependency
Try running the following to clear out the repository cache so it can be recreated.
Run this.
Then see if you can install the perl-List-MoreUtils package.
If it still does not install, run the following as root and post the output here.
Run this.
Code: Select all
dnf clean allCode: Select all
dnf install perl-List-MoreUtilsCode: Select all
dnf repolist
dnf list |grep perl-List-MoreUtilsBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: RPM for CentOS 8 won't install due to missing dependency
I had read that and tried already but no go. I also tried resetting the yum database.
I did manage to get much further though. The ISO I have for 8 was not current so I did a dnf update and upgraded all the packages. This still did not fix the repo issue but after I rebooted, the PowerTools command finally ran. I updated my automation to do a dnf update and a reboot and it looks like all is working now.
I am running across another issue that may or may not be related to the new Nagios install on CentOS8 where we have a plugin that copies CISCO-EIGRP-MIB.py to /usr/lib/python2.7/site-packages/pysnmp_mibs/ directory. On V8 that directory does not exist on Python 3 and I get this error:
Destination directory /usr/lib/python3.6/site-packages/pysnmp_mibs does not exist
Any idea where this was moved to in CentOS 8 / Nagios XI?
I did manage to get much further though. The ISO I have for 8 was not current so I did a dnf update and upgraded all the packages. This still did not fix the repo issue but after I rebooted, the PowerTools command finally ran. I updated my automation to do a dnf update and a reboot and it looks like all is working now.
I am running across another issue that may or may not be related to the new Nagios install on CentOS8 where we have a plugin that copies CISCO-EIGRP-MIB.py to /usr/lib/python2.7/site-packages/pysnmp_mibs/ directory. On V8 that directory does not exist on Python 3 and I get this error:
Destination directory /usr/lib/python3.6/site-packages/pysnmp_mibs does not exist
Any idea where this was moved to in CentOS 8 / Nagios XI?
Re: RPM for CentOS 8 won't install due to missing dependency
I ran the pip3 install to install the Python MIB files that you posted about.
And it installed them in this folder on a Centos 8 system.
Code: Select all
pip3 install pysnmp-mibsCode: Select all
/usr/local/lib/python3.6/site-packages/pysnmp_mibsBe sure to check out our Knowledgebase for helpful articles and solutions!