Back to TILs

How to install local RPM on RHEL

The command to install local RPMs using yum is:

yum localinstall /path/to/file.rpm

To install some missing package from a local folder I did the following:

cd /media/cdrom/post/qradar/
sed -n "s/Looking for '\(.*\)': Not found/\1/p" \
  /var/log/setup-2020.11.0.20210517144015/qradar_setup.log \
  | xargs -I{} sh -c "yum localinstall {}*"

References