Disclaimer: This article is a blogger original article, please indicate the source! ! ! Small two school: https: //blog.csdn.net/Mirror_w https://blog.csdn.net/Mirror_w/article/details/91372895
first step:
The original minimal image file to the CD image file
Step two:
Uninstall boot
umount /boot
third step:
Mount cdrom
mount /dev/cdrom /mnt
the fourth step:
Create a directory to the next yum.repos.d ooxx.repo file (the file name at random, the suffix must be repo)
cd /etc/yum.repos.d/
vi ooxx.repo
the fifth step:
Paste the following information in the file ooxx.repo
[local-base]
name=CentOS-$releasever - Base - local
baseurl=file:///mnt
gpgcheck=0
Configuration
Error message may also redirect
echo 0 > /proc/sys/vm/swappiness