Skip to content

订阅 ​

账户 ​

redhat官网软件源需要使用账户激活系统,当然也能用三方源或离线包,镜像包. 商用请购买账户订阅;
个人开发者可以在官网申请开发者账户;

备注:如果在中国大陆地区,使用官方软件软时,尽量配置http/https代理;不然更新速度会很慢.

激活订阅 ​

shell
subscription-manager register --username admin-example --password secret --auto-attach

成功后,会看到如下信息:

Registering to: subscription.rhsm.redhat.com:443/subscription
The system has been registered with ID: xxx
The registered system name is: localhost.localdomain
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status:       Subscribed

取消订阅 ​

shell
subscription-manager unregister

** 以上都可以在GUI中操作

RHSCL&DTS ​

Red Hat Software Collections (RHSCL)
Red Hat Developer Toolset (DTS)
由于redhat默认软件版本都比较老,可以从RHSCL或DTS里获取较新版本

shell
#查找可用源
subscription-manager list --available
#然后启用
subscription-manager repos --enable=rhel-server-rhscl-7-rpms

额外源 ​

有些开发包,没有在默认的源里面,需要单独添加

shell
##查询全部可用源列表
subscription-manager repos --list
##启动特定源
subscription-manager repos --enable rhel-7-server-optional-rpms
##关闭特定源
subscription-manager repos --disable rhel-7-server-optional-rpms
#此处位redhat7上的操作

重激活开发者账户 ​

  • Open developers.redhat.com in an Incognito window in Chrome
  • Use your Red Hat login ID to sign in to the site.
  • Acknowledge the provided Terms and Conditions.
  • Log out of all Red Hat sites and close your browser(s).
  • Wait 15 to 20 minutes, then log in to access.redhat.com/management
  • You should now see a new Red Hat Developer for Individuals Subscription on your account.