Get the App
SLTechnology News&Howtos  ›  Servers  › 

Configure a local yum source

Shulou Source: shulou.com Published: 2022-06-03 02:14:58 09月22日 Update

For example, there is an installation image DVD, which can be mounted to / mnt/,. You can specify the mount directory at will.

Configure yum:

Switch to / etc/yum.repos.d/

Create your own file with the suffix repo

Edit the following with vim:

[rhel6u4] # name of the YumSource

Description of the name=rhel6 iso soft # yum source

The local mirror path of the baseurl= file:///mnt/rhel6/Server # Yum source

Whether enabled=1 # is currently in effect

Whether gpgcheck=0 # validates the yum source

Note: # means to comment on each line and cannot be used in actual editing.

Execute the yum clean all clear cache command after the above configuration is completed, and every time you modify the yum configuration file, you should

Execute this command

Tags: Configuration mirroring commands files information content name suffix actual meaning comment directory cache path switch verification Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Tech Info NVidia OPPO Reno Xiaomi