#创建yum云, you need to mount the disc to the local path first:
$sudo Mkdir/mnt/cdrom #创建挂载点, cdrom the folder you created for yourself
$sudo mount-t iso9660/dev/sr0/mnt/cdrom #挂载光盘到/mnt/cdrom Path, the file type is: iso9660. Disc path:/dev/sr0 or/dev/cdrom, can be mounted.
#光盘挂载成功, configure the Yum cloud:
Cd/etc/yum.repos.d/#进入yum云路径下
MV Centos-base.repo CENTOS-BASE.REPO1 #改名成CentOS-base.repo1,yum installation, do not look for the network Yum Cloud recorded in the Centos-base.repo
MV Centos-debuginfo.repo CENTOS-DEBUGINFO.REPO1 #同上
MV Centos-media.repo CENTOS-MEDIA.REPO1 #同上
MV Centos-vault.repo CENTOS-VAULT.REPO1 #同上
Vim Yun.repo #创建一个 *.repo file and go to edit
[Yun] #起名, casual
Name=yun #同上, randomly named
Baseurl=file:///mnt/cdrom #本地挂载光盘路径
Enabled=1 #允许访问, 1-agreed, 0-Disagree
Gpgchech=0 #安装包检查, 1-check, 0-do not check the local disc, do not check.
Linux create yum on-premises cloud