yum一般用于远程安装,也可以用于本地RPM包,而且可以自动解决安装本地RPM包时所出现的依赖关系:yum localinstall package.rpm
有时,当我们的rpm包没有在yum树中记录时,默认设置中的/etc/yum.conf的gpgcheck=1,禁止安装。设置gpgcheck=0就OK!
THREE ways:
1. Just use the simple "rpm -ivh package.rpm" (you get the same result as doing "yum localinstall package.rpm"); or
2. Edit /etc/yum.conf and change the value of gpgcheck from 1 to 0.
3.yum localinstall package.rpm --nogpgcheck
referto:http://forums.fedoraforum.org/archive/index.php/t-144091.html