Reference Documents for Red Hat Products
Red Hat Subscription Management Cheatsheet
Refer SUBSCRIPTION-MANAGER COMMAND CHEAT SHEET
# 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 \
--enable=rhel-server-rhscl-7-2.9.rpms
# or for RHEL8
subscription-manager repos \
--enable=rhel-8-for-x86_64-baseos-rpms \
--enable=rhel-8-for-x86_64-appstream-rpms
# enabling ansible repo
subscription-manager repos \
--enable ansible-2-for-rhel-8-x86_64-rpms
# enabling AAP repo
subscription-manager repos \
ansible-automation-platform-2.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
- How to provide files to Red Hat Support (vmcore, rhev logcollector, sosreports, heap dumps, log files, etc.)
Subscription Reference
- How to register and subscribe a system offline to the Red Hat Customer Portal
- How to register and subscribe a system to the Red Hat Customer Portal using Red Hat Subscription-Manager
- Common administrative commands in Red Hat Enterprise Linux 5, 6, 7, and 8 (Subscription Details, RHN ID, UUID)
Repository & Satellite
-
Yum Repository Configuration Helper
This tool will help you set up a simple Yum repository for your local machine or a small number of other machines to use.
- Configuring Virtual Machine Subscriptions in Red Hat Satellite- RED HAT SATELLITE 6.11 - Using virt-who to manage host-based subscriptions
- Simple Content Access
- Does Red Hat Satellite 6 and Red Hat Satellite Capsule 6 support hardening?
Useful Links
- Red Hat on GitHub
Appendix
How to fix Repos not Visible on Client issue ?
goto https://access.redhat.com/labs/rhpc/
select the product -> version and arch -> follow scripted or manual