# LINUX6 installation of the Yum repository and automatic boot mount
---------------------------------Installation Environment-------------------------------
Redhat6 image file:
Link: Https://pan.baidu.com/s/1DKH6adbrsipM-cTzH-wBgA Baidu network disk password is HXCB
Vmware Workstation virtual Machine tools:
Link: Https://pan.baidu.com/s/1VvNR9Jh3FDXdcHIHNJ5qhQ Baidu network disk password: le9l
---------------------------------Operation Command---------------------------------
* *1. **
Confirm the environment and put the REDHAT6 image file in the virtual machine
* *2. * * Open LINUX6 terminal, enter command
ls/mnt/find an empty file directory
Mount/dev/sr0/mnt Use the Mount command to mount the SR0 CD drive to the empty file directory of MNT
Df–h so you can see if it hangs on a successful
Cd/etc/yum.repos.d/go to the configuration file in the Yum repository
LS to see if the default configuration template is left in this directory,
RM–RF * Some words will be deleted, convenient for our installation
LS Take a look again, do not proceed to the next step
* *3. **
Vim Abc.repo Modify the random name of the ABC file, the focus is that the type must be repo configuration file, enter in
Press I to enter input mode and enter the following information
Note: For the Mount Path, the first two//is a fixed notation, and the third/representative is the root directory.
Press ESC to exit to command mode when the input is complete.
Press: Enter the last line mode,
Input wq! Save exit
* *4. **
View Yum warehouse list by Yum list
A list of Yum warehouses appears to indicate successful installation.
-------------------------------------to automatically mount each boot---------------------
1.vim/etc/fstab fstab is a configuration file that implements auto mount
2. Press I to enter command mode and enter in the last line:
/dev/sr0/mnt iso9660 Defaults 0 0
3. The following is an explanation of the input information
4. Press ESC to exit to command mode when the input is complete.
Press: Enter the last line mode,
Input wq! Save exit
5.Mount–a automatically mounts based on fstab content of the configuration file
After--------------------the above steps, check the automatic mount condition------------------------
Init 6 Restart Linux
Df–h Viewing mount conditions
LINUX6 installation of the Yum warehouse and automatic boot mount