Redhat / Fedora Using yum with a proxy

Most companies these days restrict their internet access by forcing the usage of web proxy. If your company is forcing a proxy policy & you are running Redhat/CentOs/Fedora you will have to update your yum.conf to be able to update your desktop or server using yum over a proxy connection. Luckily setting up yum to run over a proxy is an easy task. below is the few steps you need to follow to establish just that.

Edit the file /etc/yum.conf and add the following lines:

  # The proxy server - server: port
  proxy=http://proxy.mydomain.com:3128
  # If proxy authentication is required
  proxy_username=yum_user
  proxy_password=yun_user_password 

The next step is to declare the variable http_proxy to run
when the yum rpm get executed to avoid the below error:

warning: rpmts_HdrFromFdno: Header V3 DSA signature: nokey, key
ID e8562897

To declare the variable http_proxy run:

# export http_proxy='http://proxy.mydomain.com:3128'

This line can be added to the .bashrc so you will not have to run it each time you log on.

Please let us know if this was useful or on the other hand if it did not work for you by leaving us a comment.



5 Responses to “Redhat / Fedora Using yum with a proxy”

  1. Sathish.A says:

    Hi,

    After following the above procedure the probblem not yet resolved.

    warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897

    Public key for telnet-server-0.17-39.el5.i386.rpm is not installed

    Please help me to resolve the problem.

    Regards,
    Sathish.A

  2. Macs says:

    This is a nice one. I´ve encountered this post several times this week searching for something alike. Now is in my news box :) Keep up the great work!

  3. DK says:

    Hi,
    I have a domain and username has space meaning domain\User Name
    How will i represent this…

  4. DK says:

    and also o tried the following….sorry didnt mention it earlier…
    domain\User Name, DOMAIN\User Name, domain%5CUser%20Name, DOMAIN%5CUser%20Name…none of this worked….then i tried the above on the authentication prompt for browser it didnt work either….

    Thanks.

  5. unable to use YUM says:

    [...] yum to use the proxy . the fedora wiki http://fedoraproject.org/wiki/Docs/D…Guide/YumProxy and http://www.linux2aix.com/linux/redha…h-a-proxy.html this is from the fedora 5 docs but it still applies [...]

Leave a Reply