文档章节

RHEL 7 - Solution to "There are no enabled repos"

今天来找bug
 今天来找bug
发布于 2017/06/01 23:11
字数 423
阅读 134
收藏 0

The error message bellow will be display on your Redhat 7 linux system after a fresh RHEL 7 system installation. It simply means that in order to get system updates and also to install new software you need to configure package repositories.

Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 You can enable repos with yum-config-manager --enable


One way and the most obvious way is to use subscription-manager and follow the instructions to register your RHEL7 system and thus also enable RHEL's repos. For this you well need to have paid or trial Redhat subscription available. However, if you simply want to play around and install software without the need for up to date Red Hat subscription you can mount your downloaded redhat ISO image and make it your default local repository and be able to install software. To enable your local repository and thus overcome theThere are no enabled repos. first mount your REHL7 iso image:

[root@rhel7 ~]# mkdir /media/rhel7-repo-iso
[root@rhel7 ~]# mount /dev/cdrom /media/rhel7-repo-iso/
mount: /dev/sr0 is write-protected, mounting read-only

Now when you have your RHEL 7 iso mounted in /media/rhel7-repo-iso/ create a new yum repo file with a following content:

[root@rhel7 ~]# vi /etc/yum.repos.d/RHEL_7_Disc.repo
[root@rhel7 ~]# cat /etc/yum.repos.d/RHEL_7_Disc.repo
[RHEL_7_Disc]
name=RHEL_7_x86_64_Disc
baseurl="file:///media/rhel7-repo-iso/"
gpgcheck=0

Once ready check for new repos to enable this repository:

# yum repolist
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
RHEL_7_Disc                                                                                                                                      | 4.1 kB  00:00:00     
(1/2): RHEL_7_Disc/group_gz                                                                                                                      | 134 kB  00:00:00     
(2/2): RHEL_7_Disc/primary_db                                                                                                                    | 3.4 MB  00:00:00     
repo id                                                                      repo name                                                                            status
RHEL_7_Disc                                                                  RHEL_7_x86_64_Disc                                                                   4,305
repolist: 4,305

Now you will be able to install new software on your unregistered RHEL 7 linux box. The disadvantage is that you will not receive any new updates and this can create a security problem for your system. Furthermore, when using yum command the:

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

will be always displayed on your terminal.

本文转载自:https://linuxconfig.org/rhel-7-solution-to-there-are-no-enabled-repos-message

共有 人打赏支持
今天来找bug
粉丝 9
博文 214
码字总数 36040
作品 0
深圳
程序员
私信 提问
RHEL7 Minimal Register

前几天(愚人节前一天),redhat宣布开发者可以免费订阅最新的RHEL(听到这个消息当时还以为是愚人节的玩笑),不过只能用于开发环境^^ 官方还出了个教程:http://developers.redhat.com/pr...

lalamina
2016/04/21
377
0
Centos 7 安装 PostgreSQL

本文只讲PostgreSQL在CentOS 7.x 下的安装,其他系统请查看:https://www.postgresql.org/download PostgreSQL 所用版本为:PostgreSQL 10 1.安装存储库 https://download.postgresql.org/pu......

dragon_tech
11/23
0
0
Install EPEL Repo on a CentOS and RHEL 7.x

How to install RHEL EPEL repository on Centos 7.x or RHEL 7.x The following instuctions assumes that you are running command as root user on a CentOS/RHEL 7.x system and want to......

加油2018
2014/07/08
0
0
RedHat yum 源配置

RedHat yum 源配置 (可参考) 今天终于能够yum更新啦,很简单,只要删除原来 /etc/yum.repo.d/rhel-debuginfo.repo,并将/etc/yum.conf内容修改为如下内容即可,经测试完全可以使用。至于yum...

晨曦之光
2012/03/02
724
0
RedHat yum 源配置

RedHat yum 源配置 (可参考) 今天终于能够yum更新啦,很简单,只要删除原来 /etc/yum.repo.d/rhel-debuginfo.repo,并将/etc/yum.conf内容修改为如下内容即可,经测试完全可以使用。至于yum...

长平狐
2013/01/06
117
0

没有更多内容

加载失败,请刷新页面

加载更多

[LintCode] Linked List Cycle(带环链表)

描述 给定一个链表,判断它是否有环。 样例 给出 -21->10->4->5, tail connects to node index 1,返回 true。 这里解释下,题目的意思,在英文原题中,tail connects to node index 1 表示的...

honeymose
20分钟前
3
0
Android :报错Your project path contains non-ASCII characters.

报错内容如下 Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See ht......

lanyu96
31分钟前
2
0
Nginx平滑添加模块

Nginx已经编译安装并运行了一段时间, 然后某一天, 发现需要用到某个模块但当初没有编译, 这个时候怎么办呢? 卸载重新安装肯定可以的, 如果Nginx版本没有变更的话, 则有一个相对平滑的方法来添...

老菜鸟0217
36分钟前
5
0
spark安装测试

spark安装测试 由于本地已经安装好hadoop相关组件,所以本文是在yarn的基础上对spark进行安装及测试 确保hdfs及yarn成功启动,hadoop版本为2.7.3 安装scala,由于本人安装的spark是2.4.0,对应...

-九天-
50分钟前
4
0
周末看完了《电能计量自动化技术》

整体质量还行,下面分别将心得记录如下: 第一章:发展历程可以看看,现在算是智能电网阶段 2:讲主站系统。以文件进行各模块的交互很值得思考,尤其是批量数据,多团队合作的情况下。另外线...

max佩恩
今天
12
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部