Set up a SOCKS5 proxy for YUM

Reference

YUM introduction

Modify the configuration file

Use vi or vim to edit the /etc/yum.conf file, and add the proxy server address and account password to the file. The following example of specific content parameters.

            proxy=socks5://192.168.0.130:1080
proxy_username=username
proxy_password=password
        

Other content

In addition to using SOCKS5 proxy, we can also use HTTP proxy. When the server itself can connect to the public network, we usually don't need to use a proxy. But if some files are too slow to download, we can also use a proxy to speed up the file download.