RPM for CentOS 8 won't install due to missing dependency

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dflick
Posts: 72
Joined: Tue Nov 12, 2013 3:16 pm

RPM for CentOS 8 won't install due to missing dependency

Post by dflick »

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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: RPM for CentOS 8 won't install due to missing dependency

Post by tgriep »

Try running the following to clear out the repository cache so it can be recreated.
Run this.

Code: Select all

dnf clean all
Then see if you can install the perl-List-MoreUtils package.

Code: Select all

dnf install perl-List-MoreUtils
If it still does not install, run the following as root and post the output here.

Code: Select all

dnf repolist
dnf list |grep perl-List-MoreUtils
Be sure to check out our Knowledgebase for helpful articles and solutions!
dflick
Posts: 72
Joined: Tue Nov 12, 2013 3:16 pm

Re: RPM for CentOS 8 won't install due to missing dependency

Post by dflick »

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?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: RPM for CentOS 8 won't install due to missing dependency

Post by tgriep »

I ran the pip3 install to install the Python MIB files that you posted about.

Code: Select all

pip3 install pysnmp-mibs
And it installed them in this folder on a Centos 8 system.

Code: Select all

/usr/local/lib/python3.6/site-packages/pysnmp_mibs
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked