Up a local warehouse

1. Create a hbza clone a virtual machine, open a terminal, create a directory.

 

2. Set the mirror.

 

 3. Log root.

 

 4. Open a terminal, create a directory and mount the CD.

 

 5. Log yum virtual machine.

 

 6. Modify the yum configuration file, enter cd /etc/yum.repos.d, listed yum directory, enter cd bak, and then list bak directory.

 

 7. Enter vi CentOS-Media.repo, Enter.

 

 8. Press i, modified hanging in the path / tt, then changed gpgcheck = 1 0, enabled = 0 to 1.

 

 9. Press and hold esc health, shift + :, wq, quit.

 

 10. Enter yum list. View all displayed yum warehouse software.

 

 11. Open hrza clone virtual machine, open the input terminal yum list. The View yum repository of all software in
the warehouse building completed
next can be installed yum source file.

 

Guess you like

Origin www.cnblogs.com/199904-04/p/11695074.html