Set up a SOCKS5 proxy for YUM


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.


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.