How to set the CD as the yum source in Centos6.0

Source: Internet
Author: User
The following describes how to use the Centos installation CD as the yum source and then use yum to install the software package. if you need it, refer to CentOS when using Centos, it is no longer convenient to install the software package using yum, But yum won't work if you cannot connect to the Internet.
The following describes how to use the Centos installation CD as the yum source and then use yum to install the software package. (The following steps pass the test on Centos6.0)

Step 1. first mount the disc to the/media/cdrom Directory of the system.

Mkdir/media/cdrom // Create a cdrom directory under/media. by default, the directory does not exist.
Mount/dev/cdrom/media/cdrom // mount the optical drive to the/media/cdrom directory.

Step 2. go to the/etc/yum. repos. d Directory and perform the following operations:

Cd/etc/yum. repos. d
Mv CentOS-Base.repo CentOS-Base.repo.bak CentOS-Base.repo // rename
Vi CentOS-Media.repo
Change the parameter gpgcheck to gpgcheck = 0.
Modify the enabled parameter to enabled = 1.

Save and exit. Now you can use the yum-y install command to install the software package.

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.