CentOS 7 YUM配置

CentOS 7 YUM配置

Shawn Yan Lv.6

实验环境信息

CentOS Linux release 7.4.1708 (Core)

下面是yum仓库阿里云代理的配置方式。

Mirror

  • aliyun-centos
1
2
3
4
5
6
7
cat >> centos-aliyun.repo << EOF
[centos-aliyun]
name=centos-aliyun
baseurl=https://mirrors.aliyun.com/centos/7.4.1708/os/x86_64/
enable=1
gpgcheck=0
EOF
  • aliyun-epel
1
2
3
4
5
6
7
cat >> epel-aliyun.repo << EOF
[epel-aliyun]
name=epel-aliyun
baseurl=https://mirrors.aliyun.com/epel/7/x86_64/
enable=1
gpgcheck=0
EOF
  • aliyun-docker-ce
1
2
3
4
5
6
7
cat >> docker-ce-aliyun.repo << EOF
[docker-ce-aliyun]
name=docker-ce-aliyun
baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/x86_64/stable/
enable=1
gpgcheck=0
EOF

Reference

  • Title: CentOS 7 YUM配置
  • Author: Shawn Yan
  • Created at: 2018-04-08 15:01:01
  • Updated at: 2018-04-08 15:01:01
  • Link: https://shawnyan.cn/2018/centos/centos-7-yum-repo/
  • License: This work is licensed under CC BY-NC-SA 4.0.
 Comments