天天看點

Centos 修改yum源為aliyun

修改伺服器源,避免長途跋涉到國外:

位置:

vim  /etc/yum.repos.d/CentOS-Base.repo

Centos 修改yum源為aliyun

 aliyun位址:

設定aliyun的yum源

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

添加epl源:

裝上 EPEL後,可以像在 Fedora 上一樣,可以通過 yum install package-name,安裝更多軟體。

wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-7.repo

清理緩存,生成新的yum以及epl緩存:

繼續閱讀