Red Hat Subscription Management
Für Updates und die Installation von Software-Paketen sind auch bei einer Subscription der subscription-manager und yum zuständig. For das Onboarding bei Red Hat sind vier Schritte nötig:
Registrierung des Systems bei Red Hat, damit es Updates erhalten kann:
subscription-manager register --username=yourusername --password=yourpassword
System an einer Subscription anhängen:
subscription-manager attach --pool=poolID
Software Repos aktivieren:
subscription-manager repos --enable "rhel-8-for-x86_64-baseos-rpms" --enable "rhel-8-for-x86_64-baseos-debug-rpms"
Review - entweder im Red Hat Customer Portal unter „Subscriptions“ oder im Subscription Asset Manager (SAM)
Die Interaktion geschieht mittels subscription-manager
oder unter GNOME per subscription-manager-gui
.
EUS-Repos in RHSM bieten genau die Software an, die zur Hardware-Architektur und der Major-Version des Systems passt.
Red Hat Subscription Manager Cheat Sheet
Alles rund um die Registrierung:
# clears old certificate files and currupt data
subscription-manager clean
# you need username and password
subscription-manager register
subscription-manager register --username=yourusername --password=yourpassword
# set a role for your system.
subscription-manager role --set="Red Hat Enterprise Linux Server"
# view available subscriptions
subscription-manager list --available | less
# view consumed subscriptions
subscription-manager list --consumed
# auto-attach a subscription
# after that, enable/disable repos
subscription-manager attach --auto
# unregister
subscription-manager remove --all
subscription-manager unregister
Repositories aktivieren/deaktivieren:
# list available repos
subscription-manager repos --list
# list enabled repos
subscription-manager repos --list-enabled
# activate repo
subscription-manager repos --enable rhel-6-server-optional-rpms
# deactivate repo
subscription-manager repos --disable rhel-6-server-optional-rpms
Troubleshooting
- Network error code: 400
subscription-manager clean subscription-manager register subscription-manager attach --auto
Built on 2023-03-17