red hat, ansible, openshift, openstack,

Red Hat Knowledge Base

Follow · 2 mins read
Share this

Reference Documents for Red Hat Products

Red Hat Subscription Management Cheatsheet


# subscribe
subscription-manager register

# subscribe using username and password in line and auto-attach pool
subscription-manager register --username <username> --password <password> --auto-attach

# Pull the latest subscription data from the server
subscription-manager refresh

# Set a role for your system.
subscription-manager role --set="Red Hat Enterprise Linux Server"

# List available subscriptions
subscription-manager list --available

# attach subscription automatically with availalbe pool
subscription-manager attach --auto

# Use the pool ID of the subscription to attach the pool to the system.
subscription-manager attach --pool=<subscription-pool-id>

# check consumed subscrptions
subscription-manager list --consumed

# Subscription details
subscription-manager identity
subscription-manager status

# listing repositories
subscription-manager repos --list

# enabling server repos
subscription-manager repos \
  --enable=rhel-7-server-rpms \

# enabling ansible repo
subscription-manager repos \
  --enable ansible-2-for-rhel-8-x86_64-rpms

# Unregistering a system
subscription-manager remove --all
subscription-manager unregister
subscription-manager clean

YUM Download only

yum install --downloadonly --downloaddir=<directory> <package>

sosreport methods

# Generate report to a specific path
sosreport -k docker.all=on -k docker.logs=on --tmp-dir /root/sos

Repository & Satellite


How to fix Repos not Visible on Client issue ?


select the product -> version and arch -> follow scripted or manual

Latest Stories