Recently learned another command: Mount Mount command, we install the software, we directly hit the command install package name, but here is actually connected to install,
If you are using a disc, you should use the Mount command from your local installation.
1, my Linux system is installed in the virtual machine, so, to first through the Virtual machine setup options, the CD or image file to add, and then in the terminal window
Input: mount/dev/cdrom/mnt//NOTE: Mount the CD to the MNT directory under the root directory
2, CD/ETC/YUM.REPOS.D//notes:
2.1 mv Centos-base.repo Entos-base.repo.bak//Note: This can be deleted, or you can modify the file suffix
2.2 Vim Centos-media.repo
baseurl=file:///mnt///Note: Specify the Yum source location
Enabled=1//Note: Yum source file is in effect
3. Installation software: Yum-y Install package name//Comment: This is to retrieve the installation package directly from the CD and install
CentOS CD mount command and install software