RedHat EL5 CentOS更新

來源:互聯網
上載者:User

標籤:redhat el5   centos更新   

查看當前系統版本號碼

[[email protected] ~]# less /etc/redhat-release

檢查系統已安裝的組件包中是否已存在Redhat的內建的yum系列組件包

[[email protected] ~]# rpm -qa | grep yum

yum-metadata-parser-1.0-8.fc6

yum-3.0.1-5.el5

yum-updatesd-3.0.1-5.el5

yum-rhn-plugin-0.4.3-1.el5

如果存在請逐一全部刪除

[[email protected] ~]# rpm -e --nodeps yum-metadata-parser-1.0-8.fc6 yum-3.0.1-5.el5 yum-updatesd-3.0.1-5.el5 yum-rhn-plugin-0.4.3-1.el5


建立Centos專用目錄,然後下載並安裝Centos系統的yum系列組件包

[[email protected] ~]# mkdir webuser

[[email protected] ~]# cd webuser

[[email protected] webuser]# wget http://ftp.sjtu.edu.cn/centos/5/os/i386/CentOS/yum-3.2.22-26.el5.centos.noarch.rpm

[[email protected] webuser]# wget http://ftp.sjtu.edu.cn/centos/5/os/i386/CentOS/yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm

[[email protected] webuser]# wget http://ftp.sjtu.edu.cn/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm

[[email protected] webuser]# wget http://ftp.sjtu.edu.cn/centos/5/os/i386/CentOS/yum-updatesd-0.9-2.el5.noarch.rpm

[[email protected] webuser]# wget http://ftp.sjtu.edu.cn/centos/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm

[[email protected] webuser]# wget http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-5 


安裝Centos升級組件包

[[email protected] webuser]# rpm -Uvh --nodeps *.rpm

Preparing...                ########################################### [100%]

   1:yum-updatesd           ########################################### [ 20%]

   2:python-iniparse        ########################################### [ 40%]

   3:yum                    ########################################### [ 60%]

   4:yum-fastestmirror      ########################################### [ 80%]

   5:yum-metadata-parser    ########################################### [100%]


匯入Centos升級組件授權

[[email protected] webuser]# rpm -import RPM-GPG-KEY-CentOS-5


建立並編輯yum升級源設定檔

[[email protected] webuser]# mkdir -p /etc/yum.repos.d/

[[email protected] webuser]# vi /etc/yum.repos.d/CentOS-Base.repo


安裝圖形化的升級軟體

[[email protected] webuser]# yum install yumex


本文出自 “夢女孩” 部落格,謝絕轉載!

RedHat EL5 CentOS更新

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.