yum update behind NTLM proxy


Please see here for the software to download for this to work and an outline of how to configure the software.

To get yum to work from behind a proxy, set up cntlm and then follwo the instructions.

you need to make sure that cntlm is started.

./etc/init.d/cntlmd start

./etc/init.d/cntlmd stop

Then edit the yum.conf file

vi /etc/yum.conf

Add the following line into the file, it is assumed that you used port 8000 when you set up cntlm in this example

proxy=http://127.0.0.1:8000

For FTP and HTTS I think the lines would be

proxy=ftp://127.0.0.1:8000

proxy=https://127.0.0.1:8000

This has not been tested but I think will work.

When running yum you may get another error

GPG key retrieval failed: [Errno 4] IOError: <urlopen error (111, ‘Connection refused’)>

I found the soultion here

http://jp.centos.org/modules/newbb/viewtopic.php?viewmode=threaded&order=ASC&topic_id=8962&forum=38&move=prev&topic_time=1181927121

If the link is unavailable

vi /etc/yum.repos.d/CentOS-Base.repo or what ever flavour of Linux you have

Change the gpgcheck=1 lines to read gpgcheck=0

This seems to fix it.

Advertisements

2 Comments on “yum update behind NTLM proxy”

  1. francois says:

    Merci !!
    C’est la seule documentation explicite sur ce sujet que j’ai trouvé.
    Cela m’a permis de résoudre un problème d’authentification d’une Fedora auprès d’un proxy Windows (Forefront).
    Ça reste du bricolage mais ça marche.


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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s