Mount ISO under RHEL6.3 and configure the Installation Software Package

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.