1. 程式人生 > >How to install a not signed rpm via yum?

How to install a not signed rpm via yum?

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