Before learning Yum Online installation do not know where the error followed by the teacher's tutorial to walk the configuration file also looked no wrong but also reported wrong this is the error chart below
Here is a description of the "#" is the comment can not write this is etc/yum.repos.d/below LS a bit of linux Centos-media.repo configuration file
Tried a lot of times, so I changed the file suffix to another name and recreated a centos-media.repo.
This is my own Centos-media.repo file that I wrote with Vim.
If you make a mistake, you can change gpgcheak=1 to gpgcheak=0.
Then create the local Yum source first step to open the CD/DVD click Connection
The second step is to create the directory mkdir mut
Mount Disc Mount/dve/cdrom/mut/cdrom
Mount successfully and then enter cd/etc/yum.repos.d/
LS View the files in the current directory here we only need to see two files
The first Centos-base.repo this file is the default network source first created local Yum needs to shut down the network source so that the network source is not in effect open it
You just need to change the repo suffix.
Step three configuration Centos-media.repo
You can do it by the picture above.
The Yum list error appears under
Centos7 and the Yum groupolist query software group list error