RHEL subscription-manager

https://access.redhat.com/solutions/253273

subscription-manager register
Enter user/password
subscription-manager list --available --all
subscription-manager list --available
subscription-manager attach --pool=<pool_id>
subscription-manager repos --list
subscription-manager repos --enable=rhel-7-server-extras-rpms --enable=rhel-7-server-optional-rpms --enable=rhel-7-server-rpms --enable=rhel-7-server-supplementary-rpms
subscription-manager attach --pool=<pool_id_for_rhel_ha>
yum repolist all
subscription-manager repos --disable=*
subscription-manager unregister
To renew RHEL developer subscription
subscription-manager register --force
subscription-manager auto-attach
subscription-manager subscribe
subscription-manager release --set=8
dnf update