CentOS8 配置yum的源仓库
#神奇的光盘挂载目录
#CentOS8
[root@centos8 ~]#rpm -q autofs || yum -y install autofs
[root@centos8 ~]#systemctl enable --now autofs
#配置base.repo文件
[root@centos8 ~]#vim /etc/yum.repos.d/base.repo[BaseOS] name=BaseOS baseurl=file:///misc/cd/BaseOS gpgcheck=1 gpgkey=/etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial [AppStream] name=AppStream baseurl=file:///misc/cd/AppStream gpgcheck=0 [epel] name=EPEL baseurl=http://mirrors.aliyun.com/epel/$releasever/Everything/$basearch gpgcheck=0 enabled=1 [extras] name=extras baseurl=https://mirrors.aliyun.com/centos/$releasever/extras/$basearch/os gpgcheck=0