`

redhat 6 yum 安装

 
阅读更多

使用redhat 系统在线安装时提示This system is not registered with RHN.如下:

[root@localhost ~]# yum install httpd
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package httpd available.
Nothing to do
解决方案:

1.卸载redhat自带的yum组件

[root@hadoop-data ~]# rpm -qa|grep yum|xargs rpm -e --nodeps

2.安装centos的yum包

[root@hadoop-data ~]# wget http://centos.ustc.edu.cn/centos/6/os/i386/Packages/yum-metadata-parser-1.1.2-16.el6.i686.rpm
[root@hadoop-data ~]# wget http://centos.ustc.edu.cn/centos/6/os/i386/Packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
[root@hadoop-data ~]# wget http://centos.ustc.edu.cn/centos/6/os/i386/Packages/yum-3.2.29-40.el6.centos.noarch.rpm
[root@hadoop-data ~]# mv yum-*.rpm /tars/

[root@hadoop-data ~]# cd /tars/

[root@hadoop-data tars]# rpm -ivh yum-*.rpm
warning: yum-3.2.29-40.el6.centos.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:yum-metadata-parser    ########################################### [ 33%]
   2:yum-plugin-fastestmirro########################################### [ 67%]

[root@hadoop-data tars]# wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
--2013-03-26 18:28:11-- http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo

 

3. 下载更新源,并存放在系统目录中
[root@hadoop-data ~]# wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo

[root@hadoop-data ~]#mv CentOS_Base.repo /etc/yum.repos.d/CentOS-Base.repo

此文件的CentOS 5 的版本,修改其中的配置为版本6,并删除 addons 项,因为在版本6中没有此源

也没有找到版本6对应的repo文件,万幸它的目录整体结构没有变, 仍然可以使用!

4.生成缓存并进行安装

[root@hadoop-data ~]# yum makecache
[root@hadoop-data ~]# yum install httpd

分享到:
评论

相关推荐

    RedHat9下安装yum

    安装了gcc后,源码安装gettext,再源码安装yum即可,亲测成功

    RedHat6.2 yum源配置

    RedHat6.2 yum源配置方法,亲试成功!

    redhat 6.5 yum源

    redhat 6.5 yum源

    redhat 自动安装 yum 脚本

    自动化安装redhat yum 工具,省去寻找开源镜像,修改配置文件等繁琐过程,直接自动安装。 使用前请先自己将系统自带yum卸载, 卸载命令: rpm -qa|grep yum|xargs rpm -e -–nodeps

    redhat 5 yum 源

    redhat 5 yum源配置文档

    redhat 安装 yum

    1.卸载yum: #rpm -qa|grep yum|xargs rpm -e --nodeps 2.安装以下几个包 yum-3.2.22-26.el5.centos.noarch.rpm...6..清理并重新生成yum缓存 #yum -y upgrade http://blog.csdn.net/shawyou/article/details/12305975

    redhat5可用的yum文件

    redhat5可用的yum文件.及配置路径

    redhat7.9 + yum.repos.d

    redhat7.9 + yum.repos.d +CentOS7-Base-163.repo + Centos-7-aliyun.repo

    redhat6 yum

    redhat6 使用centos的yum 源,替换掉原文件即可使用,网上找了一大堆都不能使用,自己整理一份

    redhat6.9 yum源无法安装处理

    目前网上很多博客什么的给出的yum源更换方法,无法更换成功。报找不到对应的rpm文件问题。

    redhat7安装yum

    redhat7安装yum,自己一步步摸索的,最终安装成功,希望有所帮助

    Redhat7 安装 yum

    Redhat7 安装 yum 亲测 图解 这是安装全量包 包括 CentOS-Base.repo配置文件 亲测博客地址:http://blog.csdn.net/qq_34256348/article/details/78837175

    redhat6的yum

    redhat6下的本地yum源的配置,可以实现本地源的yum功能

    Redhat 6.9 yum源的替换

    Redhat6.9系统替换郁闷源的所有包以及163.repo都在文件夹里面,因为自己在网上找了好久都没有一个完整的包,经过几天的搜集验证,把自己的通过的包发出来,希望对一些人游泳

    redhat系统yum源的配置问题

    本文主要介绍redhat系统yum源的配置问题,感兴趣的朋友可以看看。

    RedHat 5.4yum源修改

    将redhat linux下收费yum源改为centos免费Yum源 有上网找的yum源软件包下载地址,直接就可以用

    RedHat Linux RHEL6配置本地YUM源

    RedHat Linux RHEL6配置本地YUM源

    免费 redhat7 yum 安装.zip

    rethat7 yum 安装相关资源、免费的,相关教程 https://blog.csdn.net/abu935009066/category_10585540.html

    redhat 安装yum方法.docx

    Redhat 更新 yum,后续会有批处理代码上传。

    RedHat 6.4 重新安装yum

    RedHat 6.4 为解决This system is not registered to Red Hat Subscription Management问题,删除默认yum,重新安装的四个RPM包 python-iniparse-0.3.1-2.1.el6.noarch.rpm yum-metadata-parser-1.1.2-16.el6.x86_64...

Global site tag (gtag.js) - Google Analytics