Chapter 2. Red Hat Update Agent

The Red Hat Update Agent is your connection to Red Hat Network. It enables you to register your systems, create System Profiles, and alter the settings by which your organization and RHN interact. Once registered, your systems can use the Red Hat Update Agent to retrieve the latest software packages from Red Hat. This tool allows you to always have the most up-to-date Red Hat Enterprise Linux systems with all security updates, bug fixes, and software package enhancements.

Remember, this tool must be run on the system you wish to update. You cannot use the Red Hat Update Agent on the system if it is not entitled to an RHN service offering.

WarningWarning
 

Only systems running Red Hat Enterprise Linux 3 and later can use the Red Hat Update Agent to register with RHN. Systems running Red Hat Enterprise Linux 2.1 must use Red Hat Network Registration Client before starting the Red Hat Update Agent. Refer to Chapter 5 Red Hat Network Registration Client for instructions, then return to this chapter for Red Hat Update Agent instructions.

ImportantImportant
 

You must use Red Hat Update Agent Version 2.5.4 or higher to upgrade your kernel automatically. It installs the updated kernel and configures LILO or GRUB to boot the new kernel the next time the system is rebooted. To ensure that you are running the latest version, execute the command up2date up2date. If you do not have the latest version installed, this command updates it.

2.1. Starting the Red Hat Update Agent

If you are not running the X Window System or prefer the command line version of the Red Hat Update Agent, skip to Section 2.3 Command Line Version.

You must be root to run the Red Hat Update Agent. If started as a standard user, Red Hat Update Agent prompts you to enter the root password before proceeding. The Red Hat Update Agent can be started using one of the following methods:

For Red Hat Enterprise Linux 3 and 4:

For Red Hat Enterprise Linux 2.1:

If you choose the last option and start the application from a shell prompt, you can specify the options in Table 2-1. To view these options, type the command up2date --help.

For example, use the following command to specify the directory in which to download the updated packages (temporarily overriding your saved configuration):

up2date --tmpdir=/tmp/up2date/
OptionDescription
--configureConfigure Red Hat Update Agent options. Refer to Section 2.4 Configuration for detailed instructions.
-d, --downloadDownload packages only; do not install them. This argument temporarily overrides the configuration option Do not install packages after retrieval. Use this option if you prefer to install the packages manually.
-f, --forceForce package installation. This option temporarily overrides the file, package, and configuration skip lists.
-i, --installInstall packages after they are downloaded. This argument temporarily overrides the configuration option Do not install packages after retrieval.
-k, --packagedirSpecify a colon separated path of directories in which to look for packages before trying to download them.
--nosigDo not use GPG to check package signatures. This option temporarily overrides the saved configuration option.
--tmpdir=directoryTemporarily override the configured package directory. The default location is /var/spool/up2date. This option is useful if you do not have enough space in the configured location.
--dbpath=dirSpecify an alternate RPM database to use temporarily.

Table 2-1. Graphical Update Agent Options

The first time you run the Red Hat Update Agent, two dialog boxes appear that you will not see in subsequent startups: Configure Proxy Server and Install GPG Key.

As shown in Figure 2-1, the first dialog box to appear prompts you for HTTP Proxy Server information. This is useful if your network connection requires you to use a proxy server to make HTTP connections. To use this feature, select the Enable HTTP Proxy checkbox and type your proxy server in the text field with the format HOST:PORT, such as squid.mysite.org:3128. Additionally, if your proxy server requires a username and password, select the Use Authentication checkbox and enter your username and password in the respective text fields.

An HTTP Proxy Server is not required by Red Hat Network. If you do not want to use this feature, click the OK button without making any selections. Note that the Red Hat Network Server dropdown menu at the top of the dialog box is only useful to RHN Proxy and Satellite customers. These customers should refer to the RHN Client Configuration Guide for registration steps. Also note that this dialog box is actually the General tab of the Red Hat Update Agent Configuration Tool. Refer to Section 2.4 Configuration for detailed instructions.

Figure 2-1. Configure Proxy Server

The second dialog box to appear prompts you to install the Red Hat GPG key, as shown in Figure 2-2. This key is used to verify the packages you download for security purposes. Click Yes to install the key, and you will not see this message again.

Figure 2-2. Install GPG Key