How to enable Proxy Settings for Yum Command on RHEL / CentOS Servers

This can be easily achieved with yum config file “/etc/yum.conf“. Under main section define the proxy settings like below:

………………
proxy=http://<Proxy-Server-IP-Address>:<Proxy_Port>
proxy_username=<Proxy-User-Name>
proxy_password=<Proxy-Password> 
………………

Save and exit the file and start using the yum command. Sample yum Config file with proxy settings is shown below :

Share

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.