Configure the local YUM source in RHEL6.5 and RHEL6.5 configure the YUM Source

Source: Internet
Author: User

Configure the local YUM source in RHEL6.5 and RHEL6.5 configure the YUM Source

1. Create a rhel-debuginfo.repo. If yes, back up and delete it.

 cd  /etc/yum.repos.d rm  rhel-debuginfo.repo vi  rhel-debuginfo.repo 

Insert the following content:

[Server] name = Red Hat Enterprise Linux Server baseurl = file: /// home/redhat-iso # local iso Mount path enabled = 1 # You can use yum gpgcheck = 0 # Set not to check gpgkey = file: /// home/redhat-iso/RPM-GPG-KEY-RedHat-release

2. Modify the yumRepo. py configuration file.

cd /usr/lib/python2.6/site-packages/yum/vi yumRepo.py

FindRemote = url + '/' + relative #802 rows
Changeremote = "/home/redhat-iso" + '/' + relative

3 mount an iso file

  mkdir /home/redhat-iso  mount /dev/cdrom /mnt/cdrom

Or:

mount -o loop /home/Soft/rhel-server-6.3-x86_64-dvd.iso /mnt/cdrom

4. Copy Data

cp /mnt/redhat-iso/* /home/redhat-iso

5. Clear yum cache:

yum clean all

6. ftp is not installed by default.

 yum list | grep vsftpd

View Original

Reading

  • Markdown-Getting Started Guide

  • A new Markdown guide for writers

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.