Upgrade from RHEL4 to RHEL 4.2

I have a system which was installed with the RHEL4 base release.  I would like to upgrade it to RHEL 4.2, but I can't seem to figure out the syntax of 'up2date --upgrade-to-release'  I have tried using the 4.2 channel, but I must have it wrong.  I would rather use up2date, but can yum do this task easier?  Is this the way I should be upgrading?

Also, since yum seems to be the standard in Fedora, will yum be the preferred way to update a RHEL system in future releases?  Thanks.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You don't need --upgrade-to-release, just a regular up2date -u will do.

--upgrade-to-release was needed back in RedHat 7-9 days when you switched from 7 to 8 and so on, it was also used to switch from Fedora Core 1 to 2 to 3.

After up2date you can check

rpm -q redhat-release

and it should show "redhat-release-4ES-3", since it's really 4.3 that's the latest.

Yes, you should stick to up2date because it's the only way to get updates from RHN. If you are getting the updates from someplace else you can use yum but it doesn't give you anything up2date doesn't provide, and you can set up up2date to connect to yum repos as well.

No, as far as I know there are no plans to switch from up2date to yum in RHEL, because up2date also implements server profile activation with RHN - something that is uniquely RedHat's and is not implemented in yum (which is used by many other distributions as well).

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
barthalamuAuthor Commented:
Thank you for your help.  Unfortunately I don't want to go right to RHEL 4.3 yet due to applications that have not been tested on this release yet that are tested on RHEL 4.2.  Is there a way to just upgrade to 4.2?  Thanks.
Yes, you can download the ISO images for a specific release from RHN - once logged in go to "channels", "download ISO images of channel content" and so on.

You'll need to stop rhnsd service though and stop using up2date if you don't want to upgrade to 4.3. Note that kernel is not upgraded by default, so if you are dependent on a specific kernel version and nothing else, using up2date from 4.0 is safe - you can do an up2date and then install the specific kernel version from 4.2 release.
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

barthalamuAuthor Commented:

I guess that it is not really possible to do what I wanted.  Thanks for the info though.
well, what you can do is try to find out what is it really that requires specifically 4.2 - i.e. list of RPMs that have to stay at 4.2 release numbers. You can then add these RPMs to ignore list along with the kernel, update manually to the versions you need to freeze them at and then just let everything else update the regular way.

Unless your application relies on a very specific version of kernel, I would say there are VERY good chances that it will work just fine in 4.3
barthalamuAuthor Commented:
Yea, that is probably the best option I've got.  Thanks a lot.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.