Software >> OS >> Unix >> Linux >> Package Managers >> yum >> RHEL >> How to use yum to install *.rpm without using a repository

 

e.g. we have the following .rpm in /var/tmp/rhel6

glibc-2.12-1.132.el6_5.4.i686.rpm
nss-softokn-freeb1-3.14.3-10.el6_5.i686.rpm

install it by

# yum --disablerepo=* localinstall /var/tmp/rhel6/*.rpm