Setting YUM proxy settings in Redhat

If you are behind a proxy YUM won't be able to connect to its repositories. To fix this you will need to add your proxy setting to /etc/yum.conf

If you are using an anonymous proxy, only the following line needs to get added to yum.conf

proxy=http://<poxy-server>:<proxy-port>/

In case your proxy server requires authentication also add the following lines in addtion to the above

proxy_username=<proxy-user>
proxy_password=<proxy-password>

No comments:

Post a Comment