Linux CD yum source software Installation

Source: Internet
Author: User

About the software installation in Linux, there are three ways, personally think it is more convenient to install Yum, there is a network of words is relatively simple, not to mention. This paper mainly records in the case of no external network, how to build a yum source on the local CD to achieve Yum installation.

The main steps include the following:

1. Loading local discs

  

2. Modify the Yum configuration file

Into the/ETC/YUM.REPOS.D directory, you can see there are four Yum profiles: Centos-base.repo is the default Yum source, and it is the network Yum source. Centos-media.repo is the disc yum source.

<1>, use the CD if the network Yum source fails.

  

This will rename the default network yum source directly so that it cannot be retrieved by the system. MV Centos-base.repo Centos-base.repo.bak

  

<2> Modify disc Yum Source configuration file

Modify the location where you mount the disc for yourself first. Shelf note the bottom two positions, and then modify the enabled=1, even if it takes effect.

  

  

  

3. Mount the read-in CD-ROM for software installation

<1>, mount the disc to the specified directory (the error is displayed busy because it is already mounted)

   

<2>, verify that the Yum source is set up. Use command: Yum list

   

  

Here we search Apache:yum search httpd

There's a lot of correlation here. Direct can command: yum-y install httpd Apache.

4. Unmount the disc after installation is complete

  

  

Linux CD yum source software Installation

Related Article

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.