【Linux】【RedHat】下载 安装 注册

注册

点击进入注册地址(https://www.redhat.com/wapps/ugc/register.html)

注册的时候记住你的账号(邮箱)、登录名(用于登陆RedHat Linux)、密码、组织

注册的时候别勾邮箱订阅,广告多死了

下载

主站

目前,只有最新版本的Red Hat Enterprise Linux可以从 developers.redhat.com获得。你可以在Red Hat客户门户上找到所有版本的Red Hat Enterprise

RHEL 8: https://access.redhat.com/downloads/content/479/ver=/rhel—8/8.0/x86_64/product-software
RHEL 2-7:https://access.redhat.com/downloads/content/69/ver=/rhel—7/7.6/x86_64/product-software

激活

subscription-manager register --username=用户名  --password=密码  --auto-attach

如果遇到问题,请尝试执行如下命令清理缓存

rm -rf /var/cache/yum/

参考资料:免费注册 Redhat 开发者订阅和激活订阅_reaper0s的博客-CSDN博客

订阅

subscription-manager attach --pool= 注册ID(注册的时候生成的)

或者使用自动添加订阅的方式,这种方式我没有尝试过:

subscription-manager attach --auto

问题解决

问题1 SSL: CERTIFICATE_VERIFY_FAILED

报错如下

nable to verify server's identity: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)

解决方案

vi /etc/rhsm/rhsm.conf

insecure = 0改为insecure = 1保存

问题2 System certificates corrupted

报错如下

System certificates corrupted. Please reregister

解决方案

Now un-register the system and clean up everything :

sudo subscription-manager remove --all
sudo subscription-manager unregister
sudo subscription-manager clean

Re-register to Red Hat Subscription Management :

sudo subscription-manager register
sudo subscription-manager refresh

Search the Pool ID of your developer subscription :

sudo subscription-manager list --available

Attach the system to your developer subscription :

sudo subscription-manager attach --pool=<Pool-ID>

(Replace "Pool-ID" with the matching characters.)

Regards,
Christian

问题3 Updating Subscription Management repositories.

高可用性:rhel-8-for-x86_64-highavailability-debug-rpms

高可用性:rhel-8-for-x86_64-highavailability-eus-source-rpms

弹性存储:rhel-8-for-x86_64-resilientstorage-eus-rpms

subscription-manager repos --enable=rhel-8-for-x86_64-highavailability-source-rpms
subscription-manager repos --enable=*

注意:如果你想卸载某一个,可用使用

subscription-manager repos --disable=

常用命令

查询订阅状态

subscription-manager attach

订阅有效期

subscription-manager list

列出软件仓库

subscription-manager repos --list

检查服务器所有可用订阅

subscription-manager list --available

posted @ 2021-11-09 23:37  萌狼蓝天  阅读(572)  评论(0编辑  收藏  举报