Skip to content

antony@notes:~/misc$ cat "Red-Hat-訂閱命令.md"

Red Hat 訂閱命令

2024-09-23· misc

Red Hat 訂閱命令

Register and automatically subscribe in one step

$ subscription-manager register --username <username> --password <password> --auto-attach

Register with a specific pool

$ subscription-manager attach --pool=<POOL_ID>

If you are not sure of the pool ID needed, these and details such as expiration dates can be viewed using the following command:

$ subscription-manager list --available --all

Un-registering a system

$ subscription-manager remove --all
$ subscription-manager unregister
$ subscription-manager clean