GenerationIP

Just for you

  • Increase font size
  • Default font size
  • Decrease font size
Home Documentation Mini Howto Howto configure yum to pass through proxy server

Howto configure yum to pass through proxy server

E-mail Print PDF
User Rating: / 3
PoorBest 

Type : System
Operating System : Linux

This howto provide a solution if you want to update your linux server when this server is behind a proxy server.

CONFIGURE YUM.CONF

yum.conf before the modification.

# cat /etc/yum.conf

[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1

# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h

installonly_limit = 5

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

Now we have to modify yum.conf and add the good option.

Add this options in you yum to pass through the proxy server.

http_proxy=http://proxy_ip:port

Add those options, if you need to use authentification on the proxy server.

proxy_username=proxy_user_name
proxy_password=proxy_user_password

EXAMPLE

yum.conf with authentification

[main]
http_proxy=http://proxy.generationip.com:3128
proxy_username=proxyuser
 proxy_password=proxypassword
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1

#  Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h

installonly_limit  = 5

# PUT YOUR REPOS HERE OR IN separate files named file.repo
#  in /etc/yum.repos.d

 

 

Last Updated on Friday, 19 March 2010 21:39  

Share this article:

Add to: Mr. Wong Add to: Webnews Add to: Icio Add to: Oneview Add to: Kledy.de Social Bookmarking Add to:  FAV!T Social Bookmarking Add to: Favoriten.de Add to: Seekxl Add to: Social Bookmark Portal Add to: BoniTrust Add to: Power-Oldie Add to: Bookmarks.cc Add to: Newskick Add to: Newsider Add to: Linksilo Add to: Readster Add to: Yigg Add to: Linkarena Add to: Digg Add to: Del.icoi.us Add to: Reddit Add to: Jumptags Add to: Upchuckr Add to: Simpy Add to: StumbleUpon Add to: Slashdot Add to: Netscape Add to: Furl Add to: Yahoo Add to: Blogmarks Add to: Diigo Add to: Technorati Add to: Newsvine Add to: Blinkbits Add to: Ma.Gnolia Add to: Smarking Add to: Netvouz Add to: Folkd Add to: Spurl Add to: Google Add to: Blinklist Information