Software >> OS >> Unix >> Linux >> Package Managers >> yum >> RHEL >> How to use yum to install rpm packages without using any repository

put following rpm files 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