1. First need to have a VMware virtual machine;
2. inside a virtual machine (here to make presentations using Linux under deCentOS);
3. Log on as root account, or without some authority to operate in the root directory;
4. Open the terminal;
5, enter the command "cd ..", return to the root directory;
6. Create a name for longshisan directory, enter the command "mkdir / longshisan"
7. Configure a local source yum (disc loading) (disc mount longshisan), enter the command "mount / dev / cdrom / longshisan"
8. Enter yum.repos.d, enter the command "cd /etc/yum.repos.d";
9. Open the file list, enter the command "ls";
10. configuration backup file
Enter the command: mv CentOS-Base.repo CentOS-Base.repo.bak
mv CentOS CentOS Debuginfo.repo Debuginfo.repo.bak
mv CentOS-Vault.repo CentOS-Vault.repo.bak
mv CentOS-CR.repo CentOS-CR.repo.bak
mv CentOS CentOS fasttrack.repo fasttrack.repo.bak
mv CentOS CentOS Sources.repo Sources.repo.bak
11. Open CentOS-Media.repo file, enter the command "vi CentOS-Media.repo"
Modify baseurl gpgcheck and enabled them
Modified as follows: baseurl = file: /// longshisan (not modified may be preferably modified)
gpgcheck = 0
enabled = 1
After press esc shift +: press Enter after inputting wq
12. Open a list of input command yum: yum list
This display indicates the installation was successful local warehouse