What is up2date and how do I use it to update my entire Red Hat Enterprise Linux system?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 4
  • Systems registered with Red Hat Network

Issue

  • what url do we download the latest patches / kernel?
  • How can I update my system?
  • How do I install packages?

Resolution

All updates and errata for Red Hat Enterprise Linux are available via Red Hat Network (RHN) and can be downloaded and installed with up2date.  The up2date is a utility provided with Red Hat Enterprise Linux 4 and earlier releases that downloads packages from RHN and installs them on your system. The advantage of using up2date to update/install packages is that it automatically resolves dependencies and downloads any additional packages that you may need.

To use up2date to install updates, you must first register your system with RHN.  You only need to register your system once to allow it to update, and it requires a current support entitlement for your system.

  • To register your system with Red Hat Network (RHN):
    # rhn_register
    
    • When prompted to enter your subscription number, enter it if you know it or select, "I do not have a subscription number" and proceed to the next step.
    • If you have not yet activated your subscription you can do so at https://www.redhat.com/activate.html.
  • To list all updates available for your system:
    # up2date -l
    
  • To download and install all updates:
    # up2date -u
    
  • To download only all updates(these are stored in /var/spool/up2date directory):
    # up2date -u -d
    
  • By default, all kernel updates are on the "Skip List" and will not be installed. To force up2date to install any kernel updates you need to include the -f option:
    # up2date -uf
    

More information can be found in the up2date man pages by typing the command:

# man up2date

More information to update kernel with up2date can be found in following article:
How to upgrade / update the kernel using the up2date agent and Red Hat Network (RHN)?

For Red Hat Enterprise Linux 5 and Red Hat Enterprise Linux 6 servers, the up2date command is not available.  Updates should be made using the yum command.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

5 Comments

[root@pubssod2 ~]# up2date -l

Fetching Obsoletes list for channel: rhel-x86_64-as-4...

Fetching rpm headers...

Name Version Rel Arch

[root@pubssod2 ~]#

[root@pubssod2 ~]# up2date -u

Fetching Obsoletes list for channel: rhel-x86_64-as-4...

Fetching rpm headers...

Name Version Rel Arch

All packages are currently up to date
[root@pubssod2 ~]#

The Firefox is not being updated

Is there a way to register a system that must remain offline?

Please correct spelling mistake in this line at end of the document, it doesn't look good:

For Red Hat Enteprise Linux 5 and Red Hat Enterprise Linux 6 servers, the up2date command is not available.  Updates should be made using the yum command.

Enterprise word is not spelled correctly, please check this.

This has been fixed, thank you for your feedback.