系统相关
首页 > 系统相关> > CentOS8配置本地yum

CentOS8配置本地yum

作者:互联网

备份/etc/yum.repos.d中的文件

cd /etc/yum.repos.d

touch CentOS-Base.repo

vim CentOS-Base.repo

mount /dev/cdrom /mnt 挂载镜像文件

[BaseOS]

name=CentOS-BaseOS

baseurl=file:///mnt/BaseOS

gpgcheck=0

enabled=1

[APP]

name=CentOS-APP

baseurl=file:///mnt/AppStream

gpgcheck=0

enabled=1

标签:file,CentOS,repos,BaseOS,mnt,yum,本地,CentOS8
来源: https://blog.51cto.com/alanfree/2642203