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/03/23 21:37] manu |
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> | ||
| Line 70: | Line 89: | ||
| </cli> | </cli> | ||
| + | ==== Activate repositories ==== | ||
| + | |||
| + | If you want to activate additionnal repositories | ||
| + | <cli prompt='#'> | ||
| + | # yum repolist all | ||
| + | |||
| + | repo id repo name status | ||
| + | C5.0-base CentOS-5.0 - Base disabled | ||
| + | C5.0-centosplus CentOS-5.0 - Plus disabled | ||
| + | C5.0-extras CentOS-5.0 - Extras disabled | ||
| + | base CentOS-5 - Base enabled: 2,725 | ||
| + | epel Extra Packages for Enterprise Linux 5 - i386 enabled: 5,783 | ||
| + | extras CentOS-5 - Extras enabled: 282 | ||
| + | </cli> | ||
| + | |||
| + | <cli prompt='#'> | ||
| + | # subscription-manager repos --enable=C5.0-base | ||
| + | </cli> | ||
| ===== Suse ===== | ===== Suse ===== | ||