[TOC]
下载
下载阿里云镜像仓库中centos8用于网络安装的镜像文件 https://mirrors.aliyun.com/centos/8/isos/x86_64/CentOS-8-x86_64-1905-boot.iso 534M
完整安装包要 6.64G https://mirrors.aliyun.com/centos/8/isos/x86_64//CentOS-8-x86_64-1905-dvd1.iso
安装界面配置,安装源
在安装界面:先设置网络,然后设置软件源,之后才能选择安装模式:
http://mirrors.aliyun.com/centos/8/BaseOS/x86_64/os/
关键点:
- 协议选择
http
- 最后路径有 斜线 .
URL type
: repository URL
修改软件源
cd /etc/yum.repos.d
vi CentOS-Base.repo
## 修改为如下内容 CentOS-Base.repo
[BaseOS]
name=CentOS-$releasever - Base
baseurl=https://mirrors.aliyun.com/centos/$releasever/BaseOS/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
vi CentOS-AppStream.repo
## CentOS-AppStream.repo
[AppStream]
name=CentOS-$releasever - AppStream
baseurl=https://mirrors.aliyun.com/centos/$releasever/AppStream/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
其他文件在默认情况下均未启用.也可以配置成阿里源.
如配置extras
,参照阿里云镜像的目录
该路径下有 media.repo
文件存在
缓存元数据
yum makecache