-   Linux - Newbie (
-   -   Assistance needed to set up RHEL 64-bit as a YUM Proxy server for 32-bit also. (

xenner 08-26-2009 08:22 PM

Assistance needed to set up RHEL 64-bit as a YUM Proxy server for 32-bit also.

Does anyone have an UP TO DATE document, or know how to set up a standard RHEL 4.1.2... 64-bit box to be a YUM Proxy machine???

I have found several manuals, all being dated a while ago, none of them being helpful.

Thanks for your assistance.

chrism01 08-26-2009 11:39 PM

This might be useful
Of course, RHEL 4.1 is old itself, they are onto 5.3 now.
If you've got a legal copy of RHEL, you can get support by phoning up RH. Otherwise, you may as well go Centos, as you won't be able to get updates anyway.
Maybe you should enable the RH Proxy pkgs.

lazlow 08-27-2009 02:27 AM

For stock systems that use yum you can use the createrepo package. Unfortunately RHEL4.X did not use yum in its stock form, it used up2date. This might complicate thing considerably. Not sure if RH will support yum on RHEL4.X but it is worth asking.

xenner 08-31-2009 12:36 AM

I'm not sure I was being clear.

We have around 12 Red Hat boxes, mostly 32-bit, with a few 64-bit machines.
We do have them registered for support with Red Hat, so failing this, I will be phoning them up, but given the hold music, I'd prefer not to :)

I need to have our machines all update from a proxy, as you're aware, but we don't have the RHEL AS version as suggested in the documentation.
The update machine is 64-bit RHEL, and this should update everything automatically, and when I run YUM on all other machines, 32-bit included, they should point at the RHN proxy to get the upates, not the internet.

Any suggestions??


lazlow 08-31-2009 01:43 AM

As I stated before RH did not start using yum until RHEL5 before that they used up2date. How did you install yum on your RHEL4.X boxes?

You do understand that you will need two separate local repos? One for 64bit and one for 32bit.

You will need to run the createrepo package every time you add new packages to your local repo. This will need to be done on both repos (32bit and 64bit).

chrism01 08-31-2009 07:05 PM

I'd say definitely see my post #2; sounds like a classic example of installing the RHEL Proxy pkg on the proxy server. Its designed to do exactly what you want.

xenner 09-10-2009 12:44 AM


I set up the 64-bit version using the post you recommended Chrism, thankyou for that.

However, the 32-bit one, I noticed the reposync command isn't there. Is there a different version of reposync for 32-bit Red Hat? I have downloaded and installed all the available YUM packages to no avail.

Thanks again for your continued assistance.

xenner 10-19-2009 08:50 PM


I did it... But with two seperate boxes... One 32bit and one 64bit.

I should have updated this ages ago and closed it. Thanks for your assistance guys, much appreciated.

Basically, I reposync'd both boxes individually using a script I wrote up so I wouldn't have to duplicate the configuration on both.
I modified the client machines /etc/yum.repos.d/.repo file by disabling the 'debug' repo and creating a new one pointing to the local proxy on the network. Had to retrieve the updates via HTTP from the local proxy, so set that up.
I then configured Apache to accept HTTP requests, pointing them all to the local repo' I created from the RHN sync. Does that make sense??? I'm sure it does. Either way, I tested it out on five of our machines here (after hours of course), and they all updated as they should without any problems.
I will now just schedule the sync' and repo' creation so it happens once a week.

Thanks again for your assistance guys, much appreciated.

All times are GMT -5. The time now is 04:29 AM.