Configuration instances of the YUM library and YUM Source

Source: Internet
Author: User

1. We can use the 163yum source or sohuyum source over the network.

/

(Sohuyum Source: http://mirrors.sohu.com, using the same method)

2. Use the CD as the yum Source

Download the complete ISO image file and mount it to the optical drive.

Create a directory to copy

# Mkdir/media/cdrom

Attach Optical Drive

# Mount/dev/cdrom/media/cdrom

View the copied directory

# Cd/media/cdrom

(VT, Cluster, Server, note that the yum library in Red Hat version 6 is different from that in version 5,

All rpm Packages of version 6 are placed in Packages.

Note the pointing path of the yum source)

Configure yum Source

# Vim/etc/yum. repos. d/iso. repo

[Iso]
Name = localiso
Baseurl = file: // media/cdrom
Gpgcheck = 1
Gpgkey = file: // media/cdrom/RPM-GPG-KEY-CentOS-6 # The gpgkey file here should be changed to the file name in the iso Image

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.