How to install local RPM on RHEL
Date: 2022-12-19Last modified: 2023-02-17
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 {}*"
⚡
Tip
Use sh
to expand wildcards in xargs
argument.