安裝centos的yum包

來源:互聯網
上載者:User

標籤:x86   輸入   xargs   作業系統   使用   fast   升級   bug   nbsp   

作業系統 :Red Hat Enterprise Linux 5 

1、卸載rhel的預設安裝的yum包查看yum包rpm -qa|grep yum卸載之rpm -qa|grep yum|xargs rpm -e --nodeps 2、下載新的yum包64位linux系統下載安裝包wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpmwget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpmwget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-4.el5.x86_64.rpm32位linux系統下載安裝包wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-3.2.22-40.el5.centos.noarch.rpmwget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpmwget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-4.el5.i386.rpm 注意:安裝包可能會升級,最後的檔案名稱可以通過最新路徑下查看得到,例如:http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/ 然後進行安裝rpm -ivh yum-*注意:yum和yum-fastestmirror相互依賴,所以同時安裝即可。3、下載yum的配置源使用命令 cd /etc/yum.repos.d/   進入yum的配置目錄。在終端中輸入 wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo 命令,下載CentOS- Base.repo檔案。然後將原有的rhel-debuginfo.repo備份一下,使用命令mv CentOS-Base.repo rhel-debuginfo.repo,將CentOS- Base.repo重新命名成rhel-debuginfo.repo。 4、運行yum makecache產生緩衝        

安裝centos的yum包

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.