We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2be0bfd commit e589000Copy full SHA for e589000
linux/centos.sh
@@ -6,8 +6,8 @@ centos_version="$1"
6
echo "==> 更换镜像为华为云"
7
cp -a /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
8
wget -O /etc/yum.repos.d/CentOS-Base.repo https://repo.huaweicloud.com/repository/conf/CentOS-"$centos_version"-reg.repo
9
-dnf -y clean all
10
-dnf -y update
+yum -y clean all
+yum -y update
11
12
# 更换终端名
13
hostname="centos$centos_version"
@@ -19,7 +19,7 @@ hostnamectl --transient
19
20
# 安装基础组件
21
echo "==> 安装基础组件"
22
-dnf install -y curl wget vim
+yum install -y curl wget vim
23
24
# 增加github hosts
25
echo "==> 增加github hosts"
0 commit comments