Centos 安裝阿里軟體安裝源

2021-06-27 10:08:19 字數 963 閱讀 3102

centos 軟體安裝源的選擇對於國人來說還是非常有必要的,誰也不想每次都跑到國外軟體源去檢索和安裝軟體,畢竟那個速度不是你我能夠接受的痛 :)

其實弄起來 so easy!centos 安裝時如果選擇中文那麼首次 yum install 時會發現選擇的就是 mirrors.aliyun.com !

準備工作:

1、在 阿里雲上包含 centos、epel、fedora查詢自己需要的 repo 檔案位址!

開始操作:

1、保證你安裝過 wget ,如果使用 centos mini 安裝的是不帶這個玩意兒滴!

$ sudo yum install wget
2、備份原始檔案,萬一搞砸了有備無患!

$ sudo mv /etc/yum.repos.d/centos-base.repo centos-base.repo.bak

$ sudo wget -o /etc/yum.repos.d/centos-base.repo epel-6.repo
4、清空、重建索引快取

$ sudo yum clean all

$ sudo yum makecache>

5、驗證結果,search 資訊中可以看到 base、extras、updates 都顯示 mirrors.aliyun.com

$ sudo yum search vim

loaded plugins: fastestmirror

loading mirror speeds from cached hostfile

* base: mirrors.aliyun.com

* extras: mirrors.aliyun.com

* updates: mirrors.aliyun.com

CentOS安裝EPEL軟體源

epel源是什麼?epel extra packages for enterprise linux 是基於fedora的乙個專案,為 紅帽系 的作業系統提供額外的軟體包,適用於rhel centos和scientific linux.epel 是yum的乙個軟體源,裡面包含了許多基本源裡沒有的軟體。...

CentOS系統更換軟體安裝源 為阿里雲

阿里雲是最近新出的乙個映象源。得益於阿里雲的高速發展,這麼大的需求,肯定會推出自己的映象源。阿里雲linux mv etc yum.repos.d centos base.repo etc yum.repos.d centos base.repo.backup 首先查詢自己系統的版本號 命令如下,根...

CentOS的阿里YUM源安裝

centos,是基於 red hat linux 提供的可自由使用源 的企業級 linux 發行版本 是乙個穩定,可 可管理和可複製的免費企業級計算平台。mv etc yum.repos.d centos base.repo etc yum.repos.d centos base.repo.back...