Spacewalk Basic: User Reference Guide 4.0
Previous Chapter 4. Red Hat Update Agent Next

Command Line Version

If you are not running X, you can still run the Red Hat Update Agent from a virtual console or remote terminal. If you are running X but want to use the command line version, you can force it not to display the graphical interface with the following command:

up2date --nox

The command line version of the Red Hat Update Agent allows you to perform advanced functions or to perform actions with little or no interaction. For example, the following command updates your system with no interaction. It will download the newer packages and install them if you configured it to install them automatically.

up2date -u

The command line version of the Red Hat Update Agent accepts the following arguments:

Table 4-2. Update Agent Command Line Arguments

Argument Description
--configure Configure Red Hat Update Agent options. This is equivalent to running the Red Hat Update Agent Configuration Tool (up2date-config). To run the command line version of up2date-config, use this option in conjunction with the --nox option: up2date --nox --configure. Refer to the Section called Command Line Version in Chapter 3 for details.
-d, --download Download packages only, do not install them. This argument will override the configuration option Do not install packages after retrieval. Use this option if you prefer to install the packages manually.
--src Download SRPM packages in addition to the binary RPM packages.
--nosrc Do not download SRPM packages (overrides configuration setting).
-f, --force Force package installation. This option overrides the file, package, and configuration skip lists.
-i, --install Install packages after they are downloaded. This argument will override the configuration option Do not install packages after retrieval.
-l, --list Display the list of updated packages that are available for the system.
--showall Show a list of all packages available for your release of Red Hat Linux, including those not currently installed.
-k, --packagedir=string Specify a colon separated path of directories to look for packages before trying to download them.
--nosig Do not use GPG to check package signatures. This option will override the saved configuration option.
-p, --packages Update the packages associated with your System Profile on Spacewalk. Use this option if you install RPM packages without using the Red Hat Update Agent.
--whatprovides=deps Sends a comma separated list of dependencies to the RHN servers and returns a list of packages that satisfies the dependencies.
--solvesdeps=deps Performs the same action as --whatprovides in addition to downloading the packages that are needed to resolve the dependencies.
--channel=string Specify a channel to use.
--gpg-flags Show the flags that gpg will be invoked with.
--tmpdir=directory 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.
-u, --update Update the system. All package updates for your system will be downloaded based on your configured preferences (and installed if you chose that option).
--nox Force the program to run in command line mode. Do not display the graphical interface.
-h, --help Display help on command line arguments.
-v, --verbose Display more information about what actions the Red Hat Update Agent is performing.
--justdb Only add packages to the database and do not install them.
--dbpath=dir Specify a path where an alternate RPM database to be used is found.
--version Display which version of the Red Hat Update Agent you are running.
-?, --usage Briefly describe the options for up2date.
packagename Specify a package name to download (and install if you chose that option). Only specify the package name. Do not include the version or release numbers. For example, the command up2date python downloads (and optionally installs) the python package if there is a newer version available and all of its dependencies. If the package specified is not already installed, it will download it and all of its dependencies (and optionally install it).

Installing the Red Hat GPG key

The first time you run the graphical version of the Red Hat Update Agent, it prompts you to install the Red Hat GPG key. This key is required to authenticate the packages downloaded from Spacewalk. If you run the command line version the first time you start Red Hat Update Agent, you need to install the Red Hat GPG key manually. If you do not have it installed, you will see the following message:

Your GPG keyring does not contain the Red Hat, Inc. public key.
Without it, you will be unable to verify that packages Update Agent downloads
are securely signed by Red Hat.

Your Update Agent options specify that you want to use GPG.

To install the key, run the following as root:

    /usr/bin/gpg --import /usr/share/rhn/RPM-GPG-KEY

To install the Red Hat GPG key, use the command displayed: /usr/bin/gpg --import /usr/share/rhn/RPM-GPG-KEY, or use the following steps:

Note Note
 

GPG keys must be installed for each user. To install the key to use with Spacewalk, import the key while logged in as root.

  1. Cut and paste the following into a file and save it as redhat2.asc or download it from http://www.redhat.com/about/contact/.

    Type bits/keyID    Date        User ID
    pub  1024D/DB42A60E 1999-09-23 Red Hat Software, Inc. (security@redhat.com)
    sub  2048g/961630A2 1999-09-23
    
    -----BEGIN PGP PUBLIC KEY BLOCK-----
    Version: GnuPG v1.0.0 (GNU/Linux)
    Comment: For info see http://www.gnupg.org
    
    mQGiBDfqVDgRBADBKr3Bl6PO8BQ0H8sJoD6p9U7Yyl7pjtZqioviPwXP+DCWd4u8
    HQzcxAZ57m8ssA1LK1Fx93coJhDzM130+p5BG9mYSWShLabR3N1KXdXQYYcowTOM
    GxdwYRGr1Spw8QydLhjVfU1VSl4xt6bupPbWJbyjkg5Z3P7BlUOUJmrx3wCgobNV
    EDGaWYJcch5z5B1of/41G8kEAKii6q7Gu/vhX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ejaNvdrE5
    4XFtOd04NMgWI63uqZc4zkRa+kwEZtmbz3tHSdRCCE+Y7YVP6IUf/w6YPQFQriWY
    FiA6fD10eB+BlIUqIw80VgjsBKmCwvKkn4jg8kibXgj4/TzQSx77uYokw1EqQ2wk
    OZoaEtcubsNMquuLCMWijYhGBBgRAgAGBQI36lRyAAoJECGRgM3bQqYOhyYAnj7h
    VDY/FJAGqmtZpwVp9IlitW5tAJ4xQApr/jNFZCTksnI+4O1765F7tA==
    =3AHZ
    -----END PGP PUBLIC KEY BLOCK-----
    
  2. At the shell prompt, import the key with the following command:

    gpg --import redhat2.asc	    
    The resulting message tells you that the key was processed. To check that the key was added, type gpg --list-keys. You will see the Red Hat, GPG key as well as your own keys.
Previous Home Next
Update Agent Finished Up Manual Package Installation