[ER] Configure Master Server so YUM may access Repos via Proxy

Issue

Your Enterprise Recon Master Server is in a corporate environment which may only access external resources (e.g mirror.centos.org & updates.groundlabs.com repos) via a proxy.

 

Solution

Add your corporate proxy into YUM's configuration.

To configure proxy settings for YUM:

Edit the /etc/yum.conf file and add the proxy details into the [main] stanza

[main]
proxy=http://<Proxy-Server-IP-Address>:<Proxy-Port>
proxy_username=<Proxy-User-Name>
proxy_password=<Proxy-Password>

Skip username & password if your proxy doesn't require one.

To check if it's working:

[root@er-master ~]# yum repolist

For further reading:

https://www.centos.org/docs/5/html/yum/sn-yum-proxy-server.html

http://www.linuxtechi.com/proxy-settings-yum-command-on-rhel-centos-servers/

 

All information in this article is accurate and true as of the last edited date.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.