I have inherited an ugly script for installing some code onto an old centos relesae, I'm trying to get the original script to work before upgrading to a proper RPM.
Currently the script is trying to install a number of RPMs in a directory, the install will go on a computer without internet access or yum repos. It was failing using rpm -ivh * because some of the RPMs were dependent on other RPMs in the same directory, and the rpm command would try to install them out of order.
I'm looking for the cleanest approach to do the install. I thought yum localinstall would work, but it first attempts to load the rpm from it's repos before using the RPMs in the directory, leading to a failure due to the lack of connectivity. I'm also not certain if it will appropriatly install the RPMs in order.
What is the cleanest approach for installation? I also believe I may need the --nogpgcheck argument?