This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
linux:lnx_subscription [2023/05/23 13:03] manu [lock version] |
linux:lnx_subscription [2023/11/15 18:15] (current) manu [Add subscription] |
||
|---|---|---|---|
| Line 25: | Line 25: | ||
| benefit of Red Hat Subscription Management. If not desired, use | benefit of Red Hat Subscription Management. If not desired, use | ||
| "subscription-manager config --rhsm.auto_enable_yum_plugins=0" to block this behavior. | "subscription-manager config --rhsm.auto_enable_yum_plugins=0" to block this behavior. | ||
| + | </cli> | ||
| + | |||
| + | ==== subscription status ==== | ||
| + | |||
| + | <cli prompt='#'> | ||
| + | [root@lnx01 ~]# subscription-manager status | ||
| + | +-------------------------------------------+ | ||
| + | System Status Details | ||
| + | +-------------------------------------------+ | ||
| + | Overall Status: Unknown | ||
| + | |||
| + | System Purpose Status: Unknown | ||
| </cli> | </cli> | ||
| Line 45: | Line 57: | ||
| # subscription-manager unregister | # subscription-manager unregister | ||
| # subscription-manager clean | # subscription-manager clean | ||
| + | # dnf clean all | ||
| </cli> | </cli> | ||
| Line 61: | Line 74: | ||
| <cli prompt='#'> | <cli prompt='#'> | ||
| # subscription-manager register --username <username> --password <password> --auto-attach | # subscription-manager register --username <username> --password <password> --auto-attach | ||
| + | </cli> | ||
| + | |||
| + | Or | ||
| + | |||
| + | <cli prompt='#'> | ||
| + | # subscription-manager register --serverurl https://subscription.rhsm.redhat.com:443/subscription --proxy http://<proxy>:8080 --proxyuser user01 --proxypassword XXXXXXXXXX --username xxxxxxx --password XXXXX | ||
| </cli> | </cli> | ||