Setting up a Linux RHEL6.6 local mirror as a yum source

Source: Internet
Author: User

Forget where it was reproduced

1, Mkdir/mnt/cdrom
2 Mount/dev/cdrom/mnt/cdrom #挂着镜像, CD
3 Mkdir/home/redhat-iso
4 cp-rf/mnt/cdrom/*/home/redhat-iso #将光盘内的内容copy到某个路径下

cd/etc/yum.repos.d/


Touch Rhel-media.repo


Cat >/etc/yum.repos.d/rhel-media.repo<< EOF
[Media]
name=red Hat Enterprise Linux 6.0
Baseurl=file:///home/redhat-iso
Enabled=1
Gpgcheck=1
Gpgkey=file:///home/redhat-iso/rpm-gpg-key-redhat-release
Eof



Yum Clean All
Yum Makecache

This article is from the "11532796" blog, please be sure to keep this source http://11542796.blog.51cto.com/11532796/1827511

Setting up a Linux RHEL6.6 local mirror as a yum source

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.