文档章节

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

今天来找bug
 今天来找bug
发布于 2017/06/01 23:11
字数 423
阅读 96
收藏 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
深圳
程序员
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
RHEL7 Minimal Register

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

lalamina
2016/04/21
377
0
使用ISO镜像构建基于FTP,HTTP的YUM源服务器

1. intruduction yum软件安装方式解决了RPM安装软件时的依赖关系问题,它可以同时配置多个资源库(Repository) ,使用简洁的配置文件/etc/yum.conf。 yum 会自动下载所需的升级资源包并默认放在...

adelphos
06/26
0
0
redhat7.2 error: public.gpg.key: import read failed(2).

系统版本: [root@mu01 yum.repos.d]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.2 (Maipo) 最初本地yum文件: [root@mu01 yum.repos.d]# cat local.repo [loacl......

俏如来
06/29
0
0
搭建CentOS在线yum源镜像服务器

搭建CentOS在线yum源镜像服务器 准备篇: 系统环境: 操作系统:CentOS6.x IP地址:192.168.12.128(ip地址随意,DHCP还是静态的都行,只要能联网就行) 实现目的:同步CentOS镜像站点的内容...

guojianwei2008
06/29
0
0

没有更多内容

加载失败,请刷新页面

加载更多

下一页

Ubuntu18.04 显卡GF-940MX安装NVIDIA-390.77

解决办法: 下面就给大家一个正确的姿势在Ubuntu上安装Nvidia驱动: (a)首先去N卡官网下载自己显卡对应的驱动:www.geforce.cn/drivers (b)下载后好放在英文路径的目录下,怎么简单怎么来...

AI_SKI
今天
0
0
深夜胡思乱想

魔兽世界 最近魔兽世界出了新版本, 周末两天升到了满级,比之前的版本体验好很多,做任务不用抢怪了,不用组队打怪也是共享拾取的。技能简化了很多,哪个亮按哪个。 运维 服务器 产品 之间的...

Firxiao
今天
0
0
MySQL 8 在 Windows 下安装及使用

MySQL 8 带来了全新的体验,比如支持 NoSQL、JSON 等,拥有比 MySQL 5.7 两倍以上的性能提升。本文讲解如何在 Windows 下安装 MySQL 8,以及基本的 MySQL 用法。 下载 下载地址 https://dev....

waylau
今天
0
0
微信第三方平台 access_token is invalid or not latest

微信第三方开发平台code换session_key说的特别容易,但是我一使用就带来无穷无尽的烦恼,搞了一整天也无济于事. 现在记录一下解决问题的过程,方便后来人参考. 我遇到的这个问题搜索了整个网络也...

自由的开源
今天
2
0
openJDK之sun.misc.Unsafe类CAS底层实现

注:这篇文章参考了https://www.cnblogs.com/snowater/p/8303698.html 1.sun.misc.Unsafe中CAS方法 在sun.misc.Unsafe中CAS方法如下: compareAndSwapObject(java.lang.Object arg0, long a......

汉斯-冯-拉特
今天
3
0

没有更多内容

加载失败,请刷新页面

加载更多

下一页

返回顶部
顶部