Centos8.4 配置本地镜像yum源
1、挂载iso镜像到/mnt
2、修改/etc/yum.repos.d/下面的repo文件,修改为如下:
[baseos]
name=CentOS Linux $releasever - BaseOS
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=BaseOS&infra=$infra
#baseurl=http://mirror.centos.org/$contentdir/$releasever/BaseOS/$basearch/os/
baseurl=file:///mnt/BaseOS
gpgcheck=0
enabled=1
[appstream]
name=CentOS Linux $releasever - AppStream
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=AppSt
共有 0 条评论