Apt-get/Yum through proxy

APT-GET 

In case if your access is going through proxy server you need to provide the credentials to APT.

Just create an apt.conf file in /etc/apt/ and add there the following entry :

Acquire::http::Proxy “http://proxyadd:port”;

In case if authentication is needed :

Acquire::http::Proxy “http://username:password@proxyadd:port”;

YUM 

/etc/yum.conf

proxy=http://proxyadd:port
proxy_username=user
proxy_password=passwd

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s