REEL7 local source configuration CentOS is also compatible
First, needless to say, this is very simple, prepare the image of the current system version
1. The first step is to mount the image, right-click the CD, and click the link
Then mount the image. The VMware image is stored under / devcdrom.
Mount / dev/cdrom / mnt
Mount system files to / mnt
The 2.yum source is placed under / etc/yum.repsd, and then we go to this directory
Cd / etc/yum.repos.d/
After entering, we will find that there is already a file, never mind.
3. Create a profile
Let's just create a file that ends in .repo, not a folder, so just edit it with vim
Just follow the revision.
4. The final step is to clear the yum cache
Yum clean all
Create a new yum cache
Yum makecache
All right, the local yum source configuration is over. Students of centos, please delete the files in the / etc/yum.reposd directory before creating a new repo.