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问题的解决办法的更多相关文章

  1. 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 ...

  2. 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 ...

  3. 使用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 ...

  4. rhel7.0解决:This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

    看这篇文章前,先说一下我的实际情况.本来要部署docker服务的,然后yum安装任何软件都不起效果,最后通过老师远程的帮助,最后成功安装上docker,老师的解决办法就是忽略这个问题,直接自己配置网络 ...

  5. 【问题】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 ...

  6. 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 ...

  7. [转]redhat7(centos7) not registered to Red Hat Subscription Management

    [root@controller0 ~]# yum install ntp Loaded plugins: fastestmirror, product-id, search-disabled-rep ...

  8. 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 ( ...

  9. 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 ...

随机推荐

  1. Windows中的键盘快捷方式大全

    Windows有很多键盘快捷方式,使用键盘快捷方式能够大大提高使用windows的效率,同时还能提升自己的逼格,背熟几个快捷方式,操作起来行云流水犹如大神一般! 页面较长,请使用目录浏览(点击跳转), ...

  2. 洛谷P3924 康娜的线段树(期望 前缀和)

    题意 题目链接 Sol 思路就是根据期望的线性性直接拿前缀和算贡献.. 这题输出的时候是不需要约分的qwq 如果你和我一样为了AC不追求效率的话直接#define int __int128就行了.. ...

  3. JS原生添加删除class的方法

    之前习惯了使用jquery的addClass的方法,然后就去找了下别人写的代码. [javascript] view plain copy function hasClass(obj,cls) { r ...

  4. innerHTML在ie9有部分无法添加

    在高版本的浏览器,innerHTML就如正常时候,里面可以套任何字符串,但是在ie9下,innerHTML不能是table ,tr td等标签字符串,解决方法如下: 在table添加一个tr var ...

  5. 排错-windows平台下访问oracle em出现空白的解决方法

    排错-windows平台下访问oracle em出现空白的解决方法 by:授客 QQ:1033553122 问题描述 IE浏览器本地访问oem,出现空白页面,就左上角有一行字符 http://loca ...

  6. 简单的分页小demo

    public class Demo { public static void main(String[] args) { Scanner sc = new Scanner(System.in); Sy ...

  7. hashCode()与equals()方法的对比

        Java对于eqauls方法和hashCode方法是这样规定的: 1.如果两个对象相同,那么它们的hashCode值一定要相同: 2.如果两个对象的hashCode相同,它们并不一定相同(上面 ...

  8. 如何使用 Azure PowerShell 在 Azure Marketplace 中查找 Windows VM 映像

    本主题介绍如何使用 Azure PowerShell 在 Azure Marketplace 中查找 VM 映像. 创建 Windows VM 时使用此信息来指定 Marketplace 映像. 确保 ...

  9. Windows用命令打开常用的设置页面和常用快捷键

    Win+R输入以下内容来快捷打开常用设置 compmgmt.msc # 计算机管理 diskmgmt.msc # 磁盘管理 devmgmt.msc # 设备管理 services.msc # 服务管理 ...

  10. JAVA JComboBox的监听事件(ActionListener、ItemListener)

    版权声明:本文为博主原创文章,未经博主允许不得转载.   目录(?)[+]   参考资料: http://263229365.iteye.com/blog/1040329 https://www.ja ...