LINUX6 installation of the Yum warehouse and automatic boot mount

Source: Internet
Author: User

# 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

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.