How to reproduce:
rm -rf /opt/opennms
sudo yum -y install opennms-core
- cleaning up $OPENNMS_HOME/data... done
*** Installation complete. You must still run the installer at
*** $OPENNMS_HOME/bin/install to be sure your database is up
*** to date before you start OpenNMS. See the install guide at
*** http: *** release notes for details.
Verifying : opennms-core-1.12.5-1.noarch 1/1
rpm --verify opennms-core
This looks self-inflicted, in the "%post core" maintainer script:
printf -- "- cleaning up \$OPENNMS_HOME/data... "
if [ -d "$RPM_INSTALL_PREFIX0/data" ]; then
rm -rf "$RPM_INSTALL_PREFIX0/data"
The customer who reported this problem (https://mynms.opennms.com/Ticket/Display.html?id=2949) has their own enterprisey software distribution system (in lieu of YUM) which requires rpm --verify to come back with no missing files in order to consider a package installed. I think that's a reasonable thing to expect of a freshly-installed package.