You can configure the proxy using environment variables or directly configure the proxy in the configuration file of YUM.

vi /etc/yum.conf
Copy the code
Https_proxy = 172.28.19.86 http_proxy = 172.28.19.86:8081:8081Copy the code