This question has been asked before but mine is a bit different.
I want to install a bunch of rpm packages using sudo yum. I do not have internet connection on the mach
if you have the RPM files on your local machine or any machine (not from network but you literally downloaded the .rpm files) then you can run
.rpm
yum localinstall
you can also do
rpm -ivh