centos8的最小化安装及更换yum地址

星期二, 2019-11-12 | Author: Lee | linux | 3,545 views

1.centos8的下载地址

http://isoredirect.centos.org/centos/8/isos/x86_64/

选择CentOS-8-x86_64-1905-boot.iso下载这个比较小只有500M多点

DVD版本太大了6.6G的样子,想安装省事可以直接下载这个CentOS-8-x86_64-1905-dvd1.iso 版本

2.这里选择是阿里云的下载地址

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

3.安装界面先配置下网络点选下即可,主要是配置安装源 如下图配置即可

网络地址填写下面即可:http://mirrors.aliyun.com/centos/8/BaseOS/x86_64/os/

4.后续安装就等待即可,设置下root和账号密码等

5.更新yum源头及安装下网络工具

yum install net-tools

可以使用 netstat -lntp工具了

cd /etc/yum.repos.d
 
vi CentOS-Base.repo
 
## 修改为如下内容 CentOS-Base.repo
[BaseOS]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=BaseOS&infra=$infra
#baseurl=http://mirror.centos.org/$contentdir/$releasever/BaseOS/$basearch/os/
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
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=AppStream&infra=$infra
#baseurl=http://mirror.centos.org/$contentdir/$releasever/AppStream/$basearch/os/
baseurl=https://mirrors.aliyun.com/centos/$releasever/AppStream/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
 
 
yum makecache

Tags: ,

文章作者: Lee

本文地址: https://www.pomelolee.com/1944.html

除非注明,Pomelo Lee文章均为原创,转载请以链接形式标明本文地址

No comments yet.

Leave a comment

Search

文章分类

Links

Meta