RPM 允許直接指定網路上的 rpm 檔,進行安裝。
以網址來安裝:
rpm -ivh http://website.name/pkgname.rpm
rpm -ivh http://website.name/pkgname.rpm
以網址來匯入 GPG
rpm -import http://website.name/RPM-GPG-KEY-centos4
rpm -import http://website.name/RPM-GPG-KEY-centos4
若需要透過 Proxy 請使用以下參數
rpm --httpproxy host --httpport port -import http://website.name/RPM-GPG-KEY-centos4
rpm --httpproxy host --httpport port -import http://website.name/RPM-GPG-KEY-centos4
例如:
rpm --httpproxy 10.1.1.25 --httpport 8080 -import http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
rpm --httpproxy 10.1.1.25 --httpport 8080 -import http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
沒有留言:
張貼留言