@yum源的安装
1.配源,在**/etc/yum.repos/**下配置yum源。其中yum.repos是专门存放yum源的地方,所以我们必须在其文件夹下配置。
配置文件:
[base]
name=CentOS- r e l e a s e v e r − B a s e − m i r r o r s . a l i y u n . c o m f a i l o v e r m e t h o d = p r i o r i t y b a s e u r l = h t t p s : / / m i r r o r s . a l i y u n . c o m / c e n t o s / releasever - Base - mirrors.aliyun.com failovermethod=priority baseurl=https://mirrors.aliyun.com/centos/ releasever−Base−mirrors.aliyun.comfailovermethod=prioritybaseurl=https://mirrors.aliyun.com/centos/releasever/BaseOS/ b a s e a r c h / o s / h t t p : / / m i r r o r s . a l i y u n c s . c o m / c e n t o s / basearch/os/ http://mirrors.aliyuncs.com/centos/ basearch/os/http://mirrors.aliyuncs.com/centos/releasever/BaseOS/ b a s e a r c h / o s / h t t p : / / m i r r o r s . c l o u d . a l i y u n c s . c o m / c e n t o s / basearch/os/ http://mirrors.cloud.aliyuncs.com/centos/ basearch/os/http://mirrors.cloud.aliyuncs.com/centos/releasever/BaseOS/$basearch/os/
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
[extras]
name=CentOS- r e l e a s e v