Mount ISO under RHEL6.3 and configure the Installation Software Package
1. Upload the RHEL6.3 ISO image to the RHEL6.3 server.
2. attach an ISO Image
Generally, the image file is mounted to/mnt/XXX, so first create a mount Folder:
# Mkdir/mnt/cdrom
Mount (I put the uploaded RHEL image in the/home/Soft folder ):
Mount-o loop/home/Soft/rhel-server-6.3-x86_64-dvd.iso/mnt/cdrom
3. Configure local yum
Back Up Files under/etc/yum. repos. d:
# Mkdir/etc/yum. repos. d/backup
# Mv/etc/yum. repos. d/rh */etc/yum. repos. d/backup/
Create a repo file under/etc/yum. repos. d/. The repo file name should be named casually, but it must end with. repo and configure the following content:
# Vi/etc/yum. repos. d/RHEL-ISO.repo
Under vi, write the following in the RHEL-ISO.repo:
[Base]
Name = iso # repository description
Baseurl = file: // mnt/cdrom # image Mount location
Enabled = 1 # enable or not
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-RedHat-release # signature KEY
4. Clear the yum cache and test whether the configuration is successful.
Clear cache:
# Yum clean all
Test whether the configuration is successful:
# Yum install httpd