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 ...
随机推荐
- 继续畅通工程(hdu1879)并查集
继续畅通工程 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Sub ...
- Mybatis标签bind用法
Mybatis使用bind元素进行模糊查询,不用在乎数据库是mysql还是oracle从而提高可移植性 使用bind元素传递多个参数 public List<Student> findSt ...
- ubuntu 17.10 安装后的应用软件安装
目录 安装 sogou 拼音 安装markdown编辑器 安装codeblocks 下载工具uGet+aira2 安装QT 安装remarkable(markdown工具) 安装StarUML(UML ...
- Angular echarts图表自适应屏幕指令
关于echarts图表自适应问题 一.引入js文件 1. 在html页面引入angular.min.js文件 2. 在html页面引入echarts.min.js文件 3. 在html页面引入app. ...
- python-状态模式
源码地址:https://github.com/weilanhanf/PythonDesignPatterns 说明: 在软件开发过程中,各种应用程序可能会根据不同的情况做出不同的处理.最直接的方案就 ...
- 自定义jquery公用方法切换当前tab栏
经常在项目中需要写到切换当前栏目的展示效果,定义公共方法 //切换当前选中 /** * 全局切换或滑动标签的函数.一般使用active作为当前激活标签的类名,如果已使用其它类名,请将类名作为二参传入 ...
- JS函数机制小结
1.javascript中函数是第一型对象,即与其它对象一样,具有: 1.可以通过字面量创建 2.可以赋值给变量或者属性 3.可以作为参数进行传递 4.可以作为函数结果返回 5.拥有属性和方法 2.函 ...
- css 讲浮动,haslayout,BFC的文章
这篇专门讲BFC和haslayout的 这篇就不用说了,讲浮动的,张鑫旭大神的 , 这一系列有三篇
- 从零自学Java-6.使用循环重复执行操作
1.使用for循环: 2.使用while循环: 3.使用do-while循环: 4.提早退出循环(break,continue): 5.为循环命名. 程序Nines:显示1-200的整数与9的乘积 p ...
- Android Studio之could not reserve enough space for object heap报错
在用AndroidStudio时出现这样的错误: 搞了半天终于找到了解决办法,但是很麻烦.就是每次创建工程后,在gradle.properties文件中加入如下代码: org.gradle.jvma ...