centOS7- local source configuration

1. First we need to configure a local source
① First configure virtual machine image file, the image file can be mounted as a mirror system.

 

② into the virtual machine system, we need to find the image file in a virtual machine system, path: dev / sr0
We need to mount the image file in mnt folder (you can create your own defined directory in this directory, such as:. Mnt \ yum)
Mount command: mount / dev / sr0 / mnt
 

 

③ local source configuration, enter etc / yum.repos.d folder (the system will default yum source), then we will delete all, our new local source
Delete command: rm -fr CentOS *
New Local Source: vi CentOS-WLAN.repo (file name can take your own)  

 

Save to finish. At this time, the local source configuration has been completed the
 

Guess you like

Origin www.cnblogs.com/single-dont/p/10991153.html