Missing rpms error occur when starting a fresh install on Linux server

Document ID : KB000039447
Last Modified Date : 14/02/2018
Show Technical Document Details

Introduction: 

Before starting a fresh install on Linux server, we use nhCheckInstallPrereqs to check if the system meets the minimum installation requirement. Some missing rpms error may occur like following:

[root@eHealth eHealth]# ./nhCheckInstallPreReqs -noPass

FAIL -- Required utility uudecode was not found in /usr/bin.

FAIL -- The 32-bit RPM package of libaio is not installed

FAIL -- Error RPM libaio not installed

FAIL -- The 32-bit RPM package of libaio-devel is not installed

FAIL -- Error RPM libaio-devel not installed

FAIL -- The 32-bit RPM package of unixODBC is not installed

FAIL -- Error RPM unixODBC not installed

FAIL -- The 32-bit RPM package of unixODBC-devel is not installed

FAIL -- Error RPM unixODBC-devel not installed

FAIL -- The 32-bit RPM package of openmotif is not installed

...

Question:

How to install the missing RPMs in one time?

Environment:  

eHealth 6.x

Linux 5.x, Linux 6.x

Answer: 

If we configure yum function correctly, we can follow the steps below:

1.Check yum configuration file under /etc/yum.repos.d directory.

Make sure “yum” function works well.

 

2.Run nhCheckInstallPreReqs command to verify what rpms missing

nhCheckInstallPreReqs –noPass

 

3.Run yum command to get all the packages

yum install `./nhCheckInstallPreReqs -noPass | awk '/RPM package of/ {print ($4 == "32-bit" ? $8".i686" : $8".x86_64")}'`

 

4.Run nhCheckInstallPreReqs again to double check if any rpms still missing

nhCheckInstallPreReqs –noPass