6 lines
233 B
Bash
6 lines
233 B
Bash
|
#!/usr/bin/env bash
|
||
|
yum install wget -y
|
||
|
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
|
||
|
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
|
||
|
yum makecache
|
||
|
yum update -y
|