CentOS Local Yum Source configuration

Source: Internet
Author: User

Download the local CD-ROM to the system:Cent6.2The installation CD is placed in the CD-ROM and operates at the terminal command line
mkdir/mnt # New Mount Directory
mount/dev/cdrom/mnt# mount the disc to/mntdirectory under
cd/mnt # go to mount directory

Ls View Mount directory,

650) this.width=650, "style=" Border-bottom: #ddd 1px solid;border-left: #ddd 1px solid;background:url ("/e/u261/lang/ Zh-cn/images/localimage.png ") no-repeat center;border-top: #ddd 1px solid;border-right: #ddd 1px solid;" Src= "/e/u261/ Themes/default/images/spacer.gif "width=" 553 "height=" 318 "alt=" Spacer.gif "/>

Configure localYumSource
cd/etc/yum.repos.d/# EnterYumConfiguration Directory
VI Centos-media.repo # Edit the configuration file and add the following:

1.1 [guangpan]

2. 2  name = centos custom name  

3.3 baseurl=file:///mnt/# local CD mount Path

4.4Gpgcheck=0 #CheckGpg-key,0to not check,1to check  

5.5enabled=1 #enabledYumSource,0to not enable,1to enable 

Such as:

650) this.width=650, "style=" Border-bottom: #ddd 1px solid;border-left: #ddd 1px solid;background:url ("/e/u261/lang/ Zh-cn/images/localimage.png ") no-repeat center;border-top: #ddd 1px solid;border-right: #ddd 1px solid;" Src= "/e/u261/ Themes/default/images/spacer.gif "width=" 557 "height=" 311 "alt=" Spacer.gif "/>

Note: centos need to file is renamed so that you can bypass the network for local source installation.

1. cd/etc/yum.repos.d/

2.2 mv Centos-base.repo centos-base.repo123

3.3 mv Centos-debuginfo.repo centos-debuginfo.repo123

Test Local Yum The source is configured successfully:

CentOS Local Yum Source configuration

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.