Mount the local Yum source with a USB flash drive, or a CD ISO image.
First, insert a USB flash drive or CD and copy the ISO file into the local / usr / local / src directory.
1) Create mount directory;
2) mount the ISO image of the / usr / local / src / under Redhat to / media / usb
3) command Df-t to see if the mount was successful
4) go to the Mount directory to view the attached Yum source
5) Edit the configuration file / etc / fstab, edit it well Wq exit save.
6) Edit the Yum source file <The file to create it yourself; after editing it, Wq exits the save.
7) using the Yum command
Yum Clean all #Clear yum cache
Yum Makecache #Cache software information in local yum source
Now that the local Yum source has been configured, you are free to install the software with Yum.
This article from "Peng Big Little" blog, declined reprint!
Red Hat Configure local Yum source