
Chapter 6. Uploading and Maintaining Custom Packages
27
figuration file
/etc/rhn/rhn.conf
or via command line options passed to RHN Package
Manager.
Parameters not set in this file are read from
.rhn_package_manager
in the home directory of the user currently logged in and finally from
/etc/rhn/rhn_package_manager.conf
. Make sure all of these files have the
appropriate permissions to prevent others from reading them.
After uploading the packages, check to see if the local directory is in sync with the RHN
Server’s image of the channels:
rhn_package_manager -s -c
name_of_private_channel
This
-s
option lists all the missing packages, which are packages uploaded to the RHN
Server but not present in the local directory. You must be an Organization Administrator to
use this option. The application prompts you for your RHN username and password.
The
--copyonly
option copies the file listed in the argument into the specified channel
without uploading to the Satellite. This is useful when a channel on a RHN Proxy Server
is missing a package and you don’t want to reimport all of the packages in the channel.
rhn_package_manager -c
channel-name
--copyonly
/path/to/missing/file
You can also use
RHN Package Manager
to retrieve a list of packages in a channel, as
they are stored by the RHN Server:
rhn_package_manager -l -c
name_of_private_channel
The
-l
option lists the package name, version number, release number, architecture, and
channel name for each package in the specified channel(s). Refer to Table 6-1 for additional
options.
Table 6-1 is a summary of all the command line options for
RHN Package Manager
(
rhn_package_manager
):
Option
Description
-v, --verbose
Increase verbosity of standard output messages.
-d, --dir
DIRECTORY_NAME
Process packages from this directory.
-c, --channel
CHANNEL_NAME
Specify the channel to receive packages. Multiple
channels may be specified using multiple instances
of
-c
(e.g.:
-c channel_one -c channel_two
)
-n, --count
NUMBER
Process this number of headers per call — the
default is 32.