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