If you have not purchased the RedHat company authorization, you cannot use Yum to install the software package, or use the RHEL system in an environment without internet, you must first build the yum server and then install the required software package, yum tool can solve the problem of package dependency.
1. First copy the rhel6 Operating System ISO image to the server, for example, put in the/root/directory of the System ISO image named rhel-server-6.2-x86_64.iso file, using the/Media/RHEL directory as the mount point. Then:
# Mkdir-P/Media/RHEL
# Mount-o loop/root/rhel-server-6.2-x86_64-dvd.iso/Media/RHEL
2. Configure the yum configuration file
# Touch/etc/yum. Repos. d/local. Repo
# Vi/etc/yum. Repos. d/local. Repo
[Server]
Name = Server
Baseurl = file: // media/RHEL/Server
Enabled = 1
Gpgcheck = 0
[Highavailability]
Name = highavailability
Baseurl = file: // media/RHEL/highavailability
Enabled = 1
Gpgcheck = 0
[Loadbalancer]
Name = loadbalancer
Baseurl = file: // media/RHEL/loadbalancer
Enabled = 1
Gpgcheck = 0
Iii. Test and use yum
# Yum list
# Yum groupinstall "X Window System"
# Yum groupyum "desktop"
This article from the "clean up messy" blog, please be sure to keep this source http://abadem.blog.51cto.com/1601838/1542543