CentOS更換網易源

來源:互聯網
上載者:User

CentOS更換網易源
系統版本:CentOS-6.4-x86_64-minimal此系統為CD版本,所以基本是屬於迷你安裝版本。現將系統預設源更換成網易源,保證下載軟體的速度。步驟如下:
1、下載新源及將本地源備份[root@localhost ~]#cd /etc/yum.repos.d/[root@localhost ~]#wget http://mirrors.163.com/.help/CentOS6-Base-163.repo[root@localhost ~]#mv CentOS-Base.repo CentOS-Base.repo.bak[root@localhost ~]#mv CentOS6-Base-163.repo CentOS-Base.repo2、yum源更新[root@localhost ~]#yum clean all && yum makecache && yum update -y3、完成。yum 命令工具使用舉例 1、升級系統[root@localhost ~]#yum update2、安裝指定的軟體包[root@localhost ~]# yum -y install mysql-server3、升級指定的軟體包[root@localhost ~]# yum -y update mysql4、卸載指定的軟體包[root@localhost ~]# yum -y remore mysql5、查看系統中已經安裝的和可用的軟體組,對於可用的軟體組,你可以選擇安裝[root@localhost ~]# yum grouplist6、安裝上一個命令中顯示的可用的軟體組中的一個軟體組[root@localhost ~]# yum -y groupinstall Emacs7、更新指定軟體組中的軟體包[root@localhost ~]# yum -y groupupdate Emacs8、卸載指定軟體組中的軟體包[root@localhost ~]# yum -y groupremove Emacs9、清除緩衝中的rpm 標頭檔和包檔案[root@localhost ~]# yum clean all10、搜尋相關的軟體包[root@localhost ~]# yum -y search Emacs11、顯示指定軟體包的資訊[root@localhost ~]# yum info Emacs12、查詢指定軟體包的依賴包[root@localhost ~]# yum deplist emacs13、列出所有以 yum 開頭的軟體包[root@localhost ~]# yum list yum\*14、列出已經安裝的但是不包含在資產庫中的rpm 包[root@localhost ~]## yum list extras

聯繫我們

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