文档章节

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

今天来找bug
 今天来找bug
发布于 2017/06/01 23:11
字数 423
阅读 121
收藏 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

没有更多内容

加载失败,请刷新页面

加载更多

SingleNumber136 leetCode

Given a non-empty array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you im......

woshixin
昨天
1
0
String ,  StringBuffer ,  StringBuilder的区别

String , StringBuffer , StringBuilder的区别 String 首先,String 是用来表示一个字符串常量的,它是一个不可变对象,意味着,一旦我们创建了某个字符串之后,就不能再改变它的值了,我们可...

tsmyk0715
昨天
2
0
区块链100讲:UTXO 和 Account 模型对比

在当前区块链世界中,主要有两种记录保存方式,UTXO 模式(Unspent Transaction Output) 和 Account 模式。Bitcoin 采用的是 UTXO 模型,Ethereum 采用的 Account 模型,同样 CITA 也采用了 ...

HiBlock
昨天
1
0
Vue中路由管理器Vue Router使用介绍(三)

一、路由定义添加动态参数定义 1.路由定义项,使用:xx 方式 定义动态参数 { path:'/user/:id/:name', name:'user', component:()=>import('./views/User.vue') ...

tianma3798
昨天
1
0
从ibdata文件恢复mysql数据

DROP TABLE 恢复【一】 Recover InnoDB dictionary Percona Data Recovery Tool 单表恢复

IT--小哥
昨天
1
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部