Subscription-Manager Command Cheat Sheet: For Red Hat Enterprise Linux
Subscription-Manager Command Cheat Sheet: For Red Hat Enterprise Linux
THE SYSTEM
COMMAND CHEAT SHEET SUBCOMMAND DESCRIPTIONS AND TASKS
for Red Hat Enterprise Linux list Lists subscription and product information for
this system
subscription-manager list --available
Lists available subscriptions not yet attached to
SUBSCRIPTION-MANAGER QUERIES the system
SUBCOMMAND DESCRIPTIONS AND TASKS
subscription-manager list --available --all
-h or --help Prints the specific help information for the given Lists all possible subscriptions that have been
command purchased, even if they do not match the system
architecture
subscription-manager attach --help
Gives the help information for the attach command subscription-manager list --available \
--match-installed
Shows only subscriptions matching products that
are currently installed
Primary Modules subscription-manager list --available \
--no-overlap
REGISTER A NEW SYSTEM TO THE SUBSCRIPTION-MANAGER Shows pools which provide products that are not
SERVICE already covered
SUBCOMMAND DESCRIPTIONS AND TASKS subscription-manager list --available \
--ondate=2016-12-25
register Registers this system to the Customer Portal or another Sets the date to use to search for active and
subscription management service available subscriptions
subscription-manager register \ subscription-manager list --consumed
[email protected] Lists all subscriptions currently attached to the
Gives the username for the account which is registering system
the system (required if not using activation key)
subscription-manager list --installed
subscription-manager register \ Lists products (subscribed or not) currently
--password=MyKul22pwd installed on the system.
Gives the user account password (required if not using
activation key)
subscription-manager register \
--serverurl=host.example.com
ATTACH OR AUTO-ATTACH A SUBSCRIPTION TO THE
Registers system with host other than SYSTEM
subscription.rhn.redhat.com SUBCOMMAND DESCRIPTIONS AND TASKS
subscription-manager register \
--baseurl=https://host:8088/sam
attach Attaches a specified subscription to the
Passes the name of the content delivery service to registered system
configure the yum service to use to pull down packages subscription-manager attach \
subscription-manager register \ --pool=8af5f9643d4ade76013123451f6e495d
--name=host.example.com Gives the ID for the subscriptions pool (collection
Sets the name of the system to register (defaults to of products) to attach to the system (required
hostname) unless using --auto)
repo-override Manage custom content repository settings rct Displays contents of a certificate or manifest
subscription-manager repo-override \ rct cat-cert /etc/pki/tls/cert.pem
--repo=rhel-7-workstation-htb-rpms Displays contents of cert.pem file
Selects the repository to modify (can be specified
more than once) rhsm-debug Lists information about subscribed system
subscription-manager repo-override \ rhsm-debug system
--add=enabled:1 Lists subscription information for local system
Adds a named override with the provided value,
separated by a colon, to repos specified (used with
the --repo option)
subscription-manager repo-override \
--remove=enabled
Removes a named override from the repos specified
with the --repo option
subscription-manager repo-override \
--remove-all
Removes all overrides from repos specified with the
--repo option
subscription-manager repo-override --list
Lists all overrides from repos specified with the
--repo option
12/14
Copyright © 2014 Red Hat, Inc. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, and JBoss are trademarks of Red Hat, Inc.,
registered in the U.S. and other countries. Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.