Redhat 使用Yum安装更新rpm包
<p>1.卸载Redhat原有的yum工具:</p><pre class="brush:bash;toolbar:false">rpm -aq|grep yum|xargs rpm -e --nodeps</pre><p>2.安装CentOS发行版中的yum工具:</p><pre class="brush:bash;toolbar:false">wget http://mirrors.163.com/centos/5/os/x86_64/CentOS/yum-3.2.22-26.el5.centos.noarch.rpmwget http://mirrors.163.com/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm
wget http://mirrors.163.com/centos/5/os/x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
wget http://mirrors.163.com/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm
rpm -ivh python-iniparse-0.2.3-4.el5.noarch.rpm
rpm -ivh yum-*</pre><p>3.更新库文件:</p><pre class="brush:bash;toolbar:false">wget http://sudone.com/download/CentOS-Base.repo -O /etc/yum.repos.d/CentOS-Base.repo</pre><p>4.使用</p><pre class="brush:bash;toolbar:false">yum install httpd</pre><p>5.扩展CentOS官方rpm资源</p>
<p>A.添加rpmforge支持:</p><pre class="brush:bash;toolbar:false">wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
rpm -ivh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm</pre><p>转摘请注明出处: http://www.ttlsa.com/html/63.html</p>
頁:
[1]