Red Hat Linux 的公共 yum 存储库是什么

Red Hat Linux 的公共 yum 存储库是什么

我有一台 Red Hat Linux 机器,当我尝试安装任何软件时,它说我的系统未注册,我该如何安装

[root@JMNGD1BLT230V01 yum.repos.d]# yum install gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
No package gettext-devel available.
No package openssl-devel available.
No package perl-CPAN available.
No package perl-devel available.
Nothing to do

以下是我的转发者

[root@JMNGD1BLT230V01 yum.repos.d]# yum repolist
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repo id             repo name                                             status
rsyslog-v7-stable   Adiscon Rsyslog v7-stable for CentOS-6Server-x86_64     896
rsyslog-v8-stable   Adiscon Rsyslog v8-stable for CentOS-6Server-x86_64   1,071
repolist: 1,967

答案1

Red Hat 需要订阅才能使用其存储库,这意味着您需要加入其开发者计划或付费订阅。

如果您实际上不需要 Red Hat(或服务合同),您可以尝试 CentOS。它与 RHEL 基本相同,只是更新速度稍慢、默认配置不同、没有 Red Hat 品牌,也不需要服务订阅(这意味着它是免费的)。

如果您已经订阅,请按照 Red Hat 知识库中概述的步骤进行操作:https://access.redhat.com/solutions/253273

答案2

如果您没有订阅 Red Hat,您可以安装 CentOS 存储库。

请参阅此链接,了解如何从 RedHat 软件包迁移到 CentOS 软件包。

https://wiki.centos.org/HowTos/MigrationGuide

来自链接:

将现有系统从 RHEL6 或 SL6 迁移到 CentOS 6

要从 RHEL6 迁移到 CentOS 6,请获取适用于您的体系结构的以下软件包的最新版本,并将其放在临时目录中。 无需使用 wget 获取软件包(如下所示),可以挂载 CentOS-6 安装介质并从中安装软件包。 对于 CentOS 6.2 x86_64

mkdir TMP
yum remove rhnlib abrt-plugin-bugzilla redhat-release-notes*
rpm -e --nodeps redhat-release redhat-indexhtml
cd TMP
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-2.el6.centos.7.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-indexhtml-6-1.el6.centos.noarch.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/yum-3.2.29-22.el6.centos.noarch.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-10.el6.noarch.rpm
rpm -Uvh *.rpm
cd ..
rm -rf TMP
yum clean all
yum upgrade

对于 CentOS 6.2 i386,只有 wget 行发生变化:

wget http://mirror.centos.org/centos/6/os/i386/Packages/centos-release-6-2.el6.centos.7.i686.rpm
wget http://mirror.centos.org/centos/6/os/i386/Packages/centos-indexhtml-6-1.el6.centos.noarch.rpm
wget http://mirror.centos.org/centos/6/os/i386/Packages/yum-3.2.29-22.el6.centos.noarch.rpm
wget http://mirror.centos.org/centos/6/os/i386/Packages/yum-plugin-fastestmirror-1.1.30-10.el6.noarch.rpm

相关内容