22
Chapter 5. RHN Package Manager
pkg-list
is the list of packages to be uploaded. Alternatively, use the
-d
option to specify the local
directory that contains the packages to add to the channel. Ensure the directory contains only the
packages to be included and no other files. RHN Package Manager can also read the list of packages
from standard input (using
--stdin
).
To upload the package headers for the source RPMs:
rhn_package_manager -c "label_of_private_channel" --source
pkg-list
If you have more than one channel specified (using
-c
or
--channel
), the uploaded package headers
will be linked to all the channels listed.
Note
If a channel name is not specified, the packages are not added to any channel. The packages can
then be added to a channel using the Red Hat Network Web interface. The interface can also be
used to modify existing private channels.
After uploading the packages, you can immediately check the RHN Web interface to verify their
presence. Click
Software
in the top navigation bar,
Manage Channels
in the left navigation bar, and
then the name of the custom channel. Then click the
Packages
subtab. Each RPM should be listed.
You can also check to see if the local directory is in sync with the RHN Server’s image of the channels
at the command line:
rhn_package_manager -s -c "
label_of_private_channel
"
This
-s
option will list all the missing packages (packages uploaded to the RHN Server not present in
the local directory). You must be an Organization Administrator to use this command. The script will
prompt you for your RHN username and password. Refer to Table 5-1 for additional command line
options.
If you are using the RHN Package Manager to update local packages, you must go to the RHN website
to subscribe the system to the private channel.
5.3. Command Line Options
A summary of all the command line options for RHN Package Manager
rhn_package_manager
:
Option
Description
-v, --verbose
Increase verbosity.
-d, --dir
DIRECTORY_NAME
Process packages from this directory.
-c, --channel
CHANNEL_LABEL
Manage this channel — may be present multiple times.
-n, --count
NUMBER
Process this number of headers per call — the default is
32.
-l, --list
List each package name, version number, release number,
and architecture in the specified channel(s).
-s, --sync
Check if local directory is in sync with the server.
-p, --printconf
Print the current configuration and exit.
Summary of Contents for NETWORK PROXY SERVER 3.6 -
Page 1: ...RHN Proxy Server 3 6 Installation Guide ...
Page 4: ......
Page 12: ...8 Chapter 2 Requirements ...
Page 16: ...12 Chapter 3 Example Topologies ...
Page 28: ...24 Chapter 5 RHN Package Manager ...
Page 34: ...30 Chapter 6 Troubleshooting ...
Page 36: ...32 Appendix A Sample RHN Proxy Server Configuration File ...
Page 38: ......