The first step: to mount disc image files
mount -o loop /dev/cdrom /mnt/ |
Part II: Create a new directory, and the default configuration file is moved, it does not take effect
mkdir /etc/yum.repos.d/bak mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/bak/ |
Step Three: Create a yum repository configuration file and write the contents
vim /etc/yum.repos.d/local.repo |
After opening a new file press the letter <i> edited and written below
[local] name=local baseurl = file: /// mnt gpgcheck=0 |
After editing, first press <ESC> button to exit the edit mode, and then press <:> input <w> <q> save exit Step four: Rebuild yum repository cache
yum makecache |
You can then use yum install -y < package name > to install additional software needs of the