Sometimes Windows is just better: Configuring RHLES OS updates with mrepo/RHN

I was setting up a small environment in a DMZ to be used to pull in patches for VMware UMDS, Shavlik (windows OS) and Redhat.

Now just the act of “connecting the utility to the internet via the proxy” is what I’m focussing on.

In Shavlik there is a box in the gui to enter the proxy authentication username and password

In UMDS you specify the credentials during setup/installation (you can also easily edit xml after install if you forget)

Then it came the redhat server.  I ran their “text-gui” to register on the redhat network…”ooh it’s asking me for proxy details, good”.  That bit worked fine.  Then came the mrepo command to start dragging down all the latest updates.

BOOM failure.  “Proxy authentication required”.  Hmm ok so I checked mrepo.conf and could only see the updated mrepo.conf
http_proxy and https_proxy variables were declared.  Searching around various sources said there were variables listed as proxyUser, proxyUsername, proxyPassword all of which I tried but to no avail.

After much head banging I went all 90s ftp and tried declaring the http_proxy variable in the following format


and success was attained.  This is crazy and not being able to set a system wide proxy in RHLES or at least to have a proper, supported method of downloading updates through an authenticated proxy is just poor.

This one time.

Windows Wins!


Leave a Reply

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

You are commenting using your 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