Installation guide
4 .1.2. Uploading Packages
Note
Only Organization Administrators can upload packages to private Red Hat Satellite channels.
The script will prompt you for your Red Hat Satellite credentials.
After creating the private channel, upload the package headers for the binary and source RPMs to
the Red Hat Satellite Server and copy the packages to the Red Hat Satellite Proxy Broker Server. To
upload the package headers for the binary RPMs, issue the following command:
rhn_packag e_manag er -c "l abel _o f_pri vate_channel " pkg-list
This command will upload the header of the package to the channel name specified, and the
package itself to /var/spo o l /rhn-pro xy/rhn.
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 that the directory contains only
the packages to be included and no other files. Custom Channel Package Manager can also read
the list of packages from standard input (using --std i n).
To upload the package headers for the source RPMs:
rhn_packag e_manag er -c "l abel _o f_pri vate_channel " --so urce 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 Satellite web interface. The interface can
also be used to modify existing private channels.
After uploading the packages, you can immediately check the Red Hat Satellite Web interface to verify
their presence. Click C hannel s in the top navigation bar, Manag e So ftware C hannel s in the left
navigation bar, and then the name of the custom channel. Then click the Packag es subtab. Each
RPM should be listed.
Also check to see if the local directory is in sync with the Red Hat Satellite Server's image of the
channels at the command line:
rhn_packag e_manag er -s -c "label_of_private_channel"
The -s option will list all the missing packages (packages uploaded to the Red Hat Satellite Server
not present in the local directory). You must be an Organization Administrator to use this command.
The script will prompt you for your Red Hat Satellite username and password.
If you are using the Custom Channel Package Manager to update local packages, you must go to
the Red Hat Satellite website to subscribe the system to the private channel.
Chapt er 4 . Cust o m Chann el Package Manager
19