Posts Tagged ‘This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register问题的解决办法
HowTo Install redhat package with YUM command without RHN
February 26, 2014 in Redhat / Linux Tips and Tricks
Tags: build local repository, build redhat local repository, HowTo Install redhat package with YUM command without RHN, This system is not registered to Red Hat Subscription Management, This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
I think it’s not too late to play with Redhat Enterprise Server :-). Need a kind of a distraction from Solaris, and other Ora** HW/SW product.. hahaha.
I just install RHEL version 6.4. trying to use yum command to install rpm-build package, but it showing below error messages:
[root@redhat64 ~]# yum install rpm-build
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 rpm-build available.
Error: Nothing to do
By default, if you check with “yum repolist all” command, there are 2 repo source with status disabled:
[root@redhat64 ~]# yum repolist all
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
rhel-source Red Hat Enterprise Linux 6Server - x86_64 - Source disabled
rhel-source-beta Red Hat Enterprise Linux 6Server Beta - x86_64 - Source disabled
repolist: 0
[root@redhat64 ~]#
Check the Redhat repository configuration file, there are two repo name, both are pointed to redhat website:
[root@redhat64 ~]# cd /etc/yum.repos.d/
[root@redhat64 yum.repos.d]# ls
rhel-source.repo
[root@redhat64 yum.repos.d]# more rhel-source.repo
[rhel-source]
name=Red Hat Enterprise Linux $releasever - $basearch - Source
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release [rhel-source-beta]
name=Red Hat Enterprise Linux $releasever Beta - $basearch - Source
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/beta/$releasever/en/os/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[root@redhat64 yum.repos.d]#
We need to register to RHN in order to use those repo source, even you try to enable the repo, by editing the line “enable=0″ to “enable=1″ but it won’t work. The easy way is build a local repository from your current redhat’s DVD / ISO file:
# mkdir /cdrom
# mount /dev/cdrom /cdrom
Rename existing repo file “rhel-source.repo” to “rhel-source.repo.backup” or whatever you want.
Create another repo file name, example “dvd.repo”:
# vi dvd.repo
[dvd-source]
name=RHEL 6.4 dvd repo
baseurl=file:///cdrom/Server
enabled=1
gpgcheck=0
Check your repo config, Test and try to install the package:
# yum repolist
# yum install rpm-build
[root@redhat64 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
dvd-source RHEL 6.4 dvd repo 3,648
repolist: 3,648
[root@redhat64 yum.repos.d]# yum install rpm-build
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. dvd-source | 3.9 kB 00:00 ... dvd-source/primary_db | 3.1 MB 00:00 ...
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package rpm-build.x86_64 0:4.8.0-32.el6 will be installed
--> Finished Dependency Resolution Dependencies Resolved =========================================================================================================================
Package Arch Version Repository Size
=========================================================================================================================
Installing:
rpm-build x86_64 4.8.0-32.el6 dvd-source 126 k Transaction Summary
=========================================================================================================================
Install 1 Package(s) Total download size: 126 k
Installed size: 315 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum. Installing : rpm-build-4.8.0-32.el6.x86_64 [ ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [#### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [##### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [###### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [####### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [######## ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [################# ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [######################### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [############################### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [################################# ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [################################### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [#################################### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [######################################### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [########################################## ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [########################################### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [############################################ ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [############################################## ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [################################################ ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [################################################# ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [######################################################## ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [######################################################### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [########################################################## ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [################################################################ ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [################################################################## ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [################################################################### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [#################################################################### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 1/1 dvd-source/productid | 1.7 kB 00:00 ...
Verifying : rpm-build-4.8.0-32.el6.x86_64 1/1
Installed:
rpm-build.x86_64 0:4.8.0-32.el6
Complete!
[root@redhat64 yum.repos.d]#
##################
We can also build a local http or ftp repository server, will talk later on another post.
参考文献:
AZIZ's BLOG
Posts Tagged ‘This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register问题的解决办法的更多相关文章
- red-hat6.5 yum 源配置,cloud-init 安装 This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register
This system is not registered to Red Hat Subscription Management. You can use subscription-manager t ...
- RedHat Enterprise Linux 6.4使用yum安装出现This system is not registered to Red Hat Subscription Management
我虚拟机安装的系统是RedHat Enterprise Linux 6.4-i686,是32位的.使用yum命令安装软件时候出现以下错误: This system is not registered ...
- 使用yum时报错 This system is not registered to Red Hat Subscription Management
错误原因:使用redhat的yum源是需要注册付费的. 1.卸载RedHat自带的yum包 查看已安装的yum rpm -qa|grep yum #卸载已安装的yum rpm -qa | grep y ...
- rhel7.0解决:This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
看这篇文章前,先说一下我的实际情况.本来要部署docker服务的,然后yum安装任何软件都不起效果,最后通过老师远程的帮助,最后成功安装上docker,老师的解决办法就是忽略这个问题,直接自己配置网络 ...
- 【问题】This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
转载请注明出处:https://www.cnblogs.com/kelamoyujuzhen/p/9087725.html 这类问题归根到底就是软件源问题,Linux下安装软件不像windows.L ...
- red hat 6.5 红帽企业Linux.6.5 yum This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. 解决办法
1.删除redhat原有的yum rpm -aq|grep yum|xargs rpm -e --nodeps 2.下载yum安装文件 wget http://mirrors.163.com/cent ...
- [转]redhat7(centos7) not registered to Red Hat Subscription Management
[root@controller0 ~]# yum install ntp Loaded plugins: fastestmirror, product-id, search-disabled-rep ...
- How to delete System Profiles for those registered with Red Hat Subscription Management (RHSM)?
Environment Red Hat Customer Portal Certificate Based Subscription Red Hat Subscription Management ( ...
- This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions.
Wrong date and time, reset the date and time in the system properly. It may also happen that system ...
随机推荐
- oracle逐步学习总结之权限和角色(基础六)
原创作品,转自请注明出处:https://www.cnblogs.com/sunshine5683/p/10236129.html 继续上节的索引,这次主要总结oracle数据库的权限问题!(在总结的 ...
- Oracle面试的基本题
事务 事务的概念 事务就是对数据操作的一系列指令集合. 事务的四个特性 原子性 事务的操作要么全部成功,要么全部失败,如果有一个指令失败,那么事务回滚到初始状态. 一致性 事务的执行不能破坏数据的完整 ...
- Service 动态更新 UI
http://blog.csdn.net/u013724061/article/details/38642049 最终效果: 动态显示当前时间和电量 思路: 首先在Activity里用内部类定义两种广 ...
- ubuntu16.04下安装mysql,并开启远程访问
一.安装 apt-get install mysql-server 二.本地连接 mysql默认开启了本地连接 直接通过mysql -uuser -p,然后输入密码访问 三.开启远程访问 3.1.创建 ...
- JavaScript--事件对象(25)
// JavaScript事件的一个重要的方面是它们拥有一些相对一致的特点,可以给开发提供强大的功能; // 最方便和强大的就是事件对象,它们可以帮你处理鼠标事件和键盘敲击方面的情况; // 此外还可 ...
- Code Signal_练习题_stringsRearrangement
Given an array of equal-length strings, check if it is possible to rearrange the strings in such a w ...
- 数组无法使用 forEach() 方法 - 分号的重要性
问题描述: 函数的结构如上图所示,在调用该函数的时候,浏览器报错: 分析原因: 在 js 的语法中,如果语句独占一行,通常可以省略句末的分号 但实际上 js 解析代码的时候,只有在句末缺少分号就无法正 ...
- python-适配器模式
源码地址:https://github.com/weilanhanf/PythonDesignPatterns 说明: 为了解决接口不兼容的问题引进一种接口的兼容机制,就是适配器模式,其通过提供一种适 ...
- 常用的第三方模块 psutil url
psutil 用Python来编写脚本简化日常的运维工作是Python的一个重要用途.在Linux下,有许多系统命令可以让我们时刻监控系统运行的状态,如ps,top,free等等.要获取这些系统信息, ...
- 【Redis】Redis学习(五) Redis cluster模式详解
一般情况下,使用主从模式加Sentinal监控就可以满足基本需求了,但是当数据量过大一个主机放不下的时候,就需要对数据进行分区,将key按照一定的规则进行计算,并将key对应的value分配到指定的R ...