The following operations are based on the root account:
1) "mkdir/yum" is created as a folder to store files in ISO.
2) since my redhad is based on the virtual machine, I need to upload the files in ISO to the virtual machine last time and add them to/Yum/. Finally, my file directory is as follows:
3) create your own repo file and run "Vim/etc/yum. repos. d/local. add content to it (local_yum_source can be named as another name based on your preferences)
[Local_yum_source]
Name = my_local_source
Baseurl = file: // yum
Gpgcheck = 0
Enable = 1
4) modify the yumrepo. py file and run the command "Vim/usr/lib/python2.6/Site-packages/Yum/yumrepo. py"
Remote = URL + '/' + relative
Change
Remote = URL + '/local_yum_source' + relative
5) run the command "Yun clean all" to clear the yum cache.
6) OK. You can run the "yum install software name" command to install your software.
Redhad6.4 create a local Yum Source