最近正好搞一套3.x体系的大数据技术集群,用CentOS8的系统,发现默认自带的所有yum源貌似无法使用,这里记录一下配置阿里的yum源
第一步:移动走所有自带的repo文件,不然会影响
bash
cd /etc/yum.repos.d
mkdir baks
mv ./*.repo ./baks
第二步:生成新的repo文件
bash
vi Centos-Linux-BaseOS.repo
追加如下内容
text
[baseos]
name=Alibaba Cloud Linux $releasever - BaseOS
baseurl=https://mirrors.aliyun.com/centos/$releasever/BaseOS/$basearch/os/
enabled=1
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
[appstream]
name=Alibaba Cloud Linux $releasever - AppStream
baseurl=https://mirrors.aliyun.com/centos/$releasever/AppStream/$basearch/os/
enabled=1
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
第三步:更新yum缓存
bash
sudo yum clean all
sudo yum makecache