
30 Chapter 6. Uploading and Maintaining Custom Packages
6.2.1. Configuring the RHN Push Application
When RHN Push is installed, a central configuration file is installed in
/etc/sysconfig/rhn/rhnpushrc. This file contains values for all the options
contained in Table 6-2. In addition, the application creates ~/.rhnpushrc and
./.rhnpushrc upon its initial use.
These distinct configuration files are useful in varying your settings depending on the
directory from which the rhnpush command is issued. Settings in the current
directory (./.rhnpushrc) take precedent over those in the user’s home directory
(~/.rhnpushrc), which are used before those in the central configuration file
(/etc/sysconfig/rhn/rhnpushrc).
For instance, you can use the current directory configuration file to specify the software
channel to be populated, the home directory configuration file to include the username to
be invoked, and the central configuration file to identify the server to receive the packages.
Table 6-2 contains all command line options for the rhnpush command:
Option Description
-v --verbose Increase verbosity, option can be used multiple
times, that is, -vv, -vvv, and so forth.
-d, --dir DIRECTORY Process packages from this directory.
-c, --channel
CHANNEL_LABEL
Specify the channel to receive packages. Note that
this is required and is not the same as the channel’s
name. Multiple channels may be specified using
multiple instances of -c (e.g. -c=CHANNEL_ONE
-c=CHANNEL_TWO).
-n, --count
N_HEADERS_PER_CALL
Process this number of headers per call. Must be an
integer. The default number is 25.
-l, --list List only the specified channels.
-r,
--reldirRELATIVE_DIRECTORY
Associate this relative directory with each file.
-o,
--orgidORGANIZATION_ID
Include your organization’s ID number. Must be an
integer.
Comentarios a estos manuales