Ad_Feed

Monday, July 25, 2011

How to configure rpm/debian package manager to use proxy

To configure package manager to use proxy in fedora, CentOS, ubuntu or generally any rpm/debian based linux, you will need to enter your proxy login details in apt.conf (for debian based) and yum.conf (for rpm based).


For RPM Based
Create or edit /etc/yum.conf and add the details below, replacing proxy-server, port, username and password with your own login details.

# The proxy server - proxy server:port number
proxy=http://proxy-server:port 

# The proxy account details 
proxy_username=username
proxy_password=password


For DEBIAN Based
Create or edit /etc/apt/apt.conf and add the details below, replacing proxy-server, port, username and password with your own login details.

ACQUIRE {
http::proxy "http://username:password@proxy-server:port/"
}

No comments:

Post a Comment