Thursday, March 12, 2009

How do I use yum through a proxy?

Red Hat Enterprise Linux 5 ships yum as a replacement for the utility 'up2date' which was used in previous versions of Red Hat Enterprise Linux.

Note: The http proxy must support byte-range addressing for successful use

In order to use yum through an http proxy please follow these steps:

1. Open /etc/sysconfig/rhn/up2date for editing

2. Change the following:

enableProxy=0

To the following:

enableProxy=1

3. Enter the user's password for the http proxy where it states the following:

proxyPassword=

4. Enter the user's username for the http proxy where it states the following:

proxyUser=

5. Enter the URL for the proxy server, in host:port format, in the following line:

httpProxy=

6. Save the file.

1 comments:

Anonymous said...

Your RHEL blog is a great idea... What better way to check your RHEL knowledge than writing about it!
Good luck on the RHCE!