5.3. Command Line Options


A summary of all the command line options for RHN Package Manager rhn_package_manager:
Expand
Table 5.1. rhn_package_manager options
Option Description
-v, --verbose Increase verbosity.
-dDIR, --dir=DIR Process packages from directory DIR.
-cCHANNEL, --channel=CHANNEL Manage this channel — may be present multiple times.
-nNUMBER, --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.
-XPATTERN, --exclude=PATTERN Exclude files matching this glob expression — can be present multiple times.
--newest Push only the packages that are newer than packages already pushed to the server for the specified channel.
--stdin Read the package names from stdin.
--nosig Push unsigned packages. By default the RHN Package Manager attempts to push only signed packages.
--username=USERNAME Specify your RHN username. If you do not provide one with this option, you will be prompted for it.
--password=PASSWORD Specify your RHN password. If you do not provide one with this option, you will be prompted for it.
--source Upload source package headers.
--dontcopy In the post-upload step, do not copy the packages to their final location in the package tree.
--test Only print the packages to be pushed.
--no-ssl Not recommended — Turn off SSL.
-?, --usage Briefly describe the options.
--copyonly Copies the file listed in the argument into the specified channel. Useful when a channel on the proxy is missing a package and you don't want to reimport all of the packages in the channel. E.g., rhn_package_manager-cCHANNEL--copyonly/PATH/TO/MISSING/FILE
-h, --help Display the help screen with a list of options.

Note

These command line options are also described in the rhn_package_manager man page: man rhn_package_manager.
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat