Centos – turn off http_proxy on centos

centoshttp-proxyPROXY

hello i have a problem. when i do "yum update or install" it will not work. but it will after i type in export http_proxy= everytime i restart. where is this location of http_proxy ? so i dont have to export each time the centos reboot?

Thanks for looking in.

Adam Ramadhan

Best Answer

I realise this is an old post but thought I'd post these instructions for others for future reference.

This works, link

Modify /etc/yum.conf to have the following lines included:

# The proxy server - proxy server:port number
proxy=http://mycache.mydomain.com:9999

# The account details for yum connections
proxy_username=yum-user-name
proxy_password=yum-user-password
Related Topic