使用redhat6.0 系统在线安装时提示This system is not registered with RHN.如下:
[root@localhost ~]# yum install gcc
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@localhost ~]# rpm -qa|grep yum|xargs rpm -e --nodeps
2.安装centos的yum包
# wget http://mirror.centos.org/centos/6/os/i386/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
# wget http://mirror.centos.org/centos/6/os/i386/Packages/yum-metadata-parser-1.1.2-16.el6.i686.rpm
# wget http://mirror.centos.org/centos/6/os/i386/Packages/yum-3.2.29-40.el6.centos.noarch.rpm
# wget http://mirror.centos.org/centos/6/os/i386/Packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
#rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm
#rpm -ivh yum-metadata-parser-1.1.2-16.el6.i686.rpm
#rpm -ivh yum-3.2.29-40.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
注意最后两个包必需同时安装,否则会相互依赖
3. 下载更新源,并存放在系统目录中
[root@localhost ~]# wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
[root@localhost ~]#mv CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo
4.生成缓存并进行安装
[root@localhost ~]# yum makecache
至此可以使用yum了。
补充更改yum源方法:
#我们使用网易的CentOS镜像源
# cd /etc/yum.repos.d/
# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
# vi CentOS6-Base-163.repo
编辑文件,把文件里面的$releasever全部替换为版本号,即6 最后保存!或者直接把下面的内存拷贝到CentOS6-Base-163.repo文件中即可(已经修改好)
#########################################################################
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-6 - Base - 163.com
baseurl=http://mirrors.163.com/centos/6/os/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=os
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-6 - Updates - 163.com
baseurl=http://mirrors.163.com/centos/6/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-6 - Extras - 163.com
baseurl=http://mirrors.163.com/centos/6/extras/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=extras
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-6 - Plus - 163.com
baseurl=http://mirrors.163.com/centos/6/centosplus/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#contrib - packages by Centos Users
[contrib]
name=CentOS-6 - Contrib - 163.com
baseurl=http://mirrors.163.com/centos/6/contrib/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=contrib
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#########################################################################
清理yum缓存
# yum clean all
# yum makecache #将服务器上的软件包信息缓存到本地,以提高搜索安装软件的速度
# yum install vim* #测试域名是否可用
相关推荐
linux安装yum命令.docx
linux安装yum命令.pdf
在Linux系统中,`yum`(Yellowdog Updater, Modified)是基于RPM包管理的命令行工具,用于安装、更新、卸载软件包。它依赖于Python解释器来运行,因此确保系统的Python版本与`yum`兼容至关重要。在本案例中,我们...
3. `rpm-4.11.3-45.el7.x86_64.rpm`:RPM(Red Hat Package Manager)是Linux下的软件包管理器,`yum`依赖于RPM来处理软件包的安装、升级和查询。 4. `python-devel-2.7.5-89.el7.x86_64.rpm`:这个包包含了开发...
RHEL Linux 安装yum源详细步骤(包含源包链接),非常详细。
在Linux系统中,尤其是CentOS这样的企业级操作系统中,安装和管理软件是非常关键的环节。`yum`(Yellowdog Updater, Modified)是RPM包管理器,它使得用户能够方便地安装、更新和管理软件包。本课程将深入讲解如何在...
Yum是什么,Yum安装,Yum配置,Yum安装应用,Yum指令详解.
"Oracle安装教程之Linux更换yum源" 在 Linux 环境中安装 Oracle 数据库之前,需要更换 yum 源,以便安装 Oracle 所需的依赖项。本文将指导您如何更换 yum 源,包括查看原有 yum 源、下载阿里云 yum 源、备份原有...
总的来说,"centos 和 linux 6.5 yum包"涉及到的是如何在两个不同的Linux发行版上利用Yum工具管理和安装软件包的过程。了解Yum的工作原理、如何配置仓库以及如何正确处理软件包的安装,对于使用这些系统的系统管理员...
在Linux系统中,`yum`(Yellowdog Updater, Modified)是用于软件包管理的重要工具,它能够方便地安装、更新、查询和卸载RPM软件包。然而,当由于某些原因导致`yum`出现问题,比如误删了依赖或者Python版本不兼容,...
"Oracle Linux更新Yum源详解" Oracle Linux 是一个基于 Red Hat Enterprise Linux 源代码的操作系统,具有高性能、可靠性和安全性。Yum(Yellow dog Updater, Modified)是一个命令行的包管理器,用于管理 RPM ...
有可能有的依赖解决不了,可以去另一个人那里看看,他的资源比较好用,本资源不需要积分也可以自行去https://vault.centos.org网站下载,各种版本的都有...这是我以前使用的别人的rpm包我是7版本的红帽Linux,亲测可用
在Linux操作系统中,`yum`(Yellowdog Updater, Modified)是基于RPM包管理的命令行工具,用于安装、更新、卸载和管理软件包。`yum`简化了RPM依赖关系的解决过程,使得用户可以方便地处理复杂的软件安装问题。在本篇...
在 Red Hat Linux 系统中,YUM 已经是默认安装的,但是在安装过程中,系统并不会自动配置 YUM,以便与 Red Hat 官方网站同步更新软件包。因此,需要手动配置 YUM,以便使用开源的更新地址。 配置 YUM 的关键步骤是...
以下是如何在Linux下彻底卸载由RPM或yum安装的MySQL的详细步骤: 1. **停止MySQL服务**: 首先,确保MySQL服务已经停止,以防止在卸载过程中发生任何问题。你可以使用以下命令来停止服务: ``` sudo systemctl ...
在Linux环境中,构建本地YUM仓库和安装GCC是系统管理员常用的任务,这使得系统能够通过yum命令方便地安装和更新软件包,同时GCC作为编译器,是开发和编译C/C++程序的基础。以下将详细阐述如何在空白的Linux系统上...
本文提供了 SuSE Linux 的详细安装介绍,涵盖了 Linux 安装前的准备、目录结构、文件系统概念、磁盘分区等多个方面的知识点。通过本文,读者可以系统地了解 SuSE Linux 的安装过程,并且对 Linux 操作系统的基本概念...
Linux 下 yum 源的搭建是指在 Linux 系统中搭建一个 yum 源服务器,以便更好地解决 Linux 下的软件安装问题。在本篇文章中,我们将介绍如何在 Linux 下搭建 yum 源,以及 yum 源的原理和工作机制。 Linux 系统中,...
标题"Linux yum安装文件"暗示了我们将讨论如何在Linux系统中利用`yum`进行软件安装,以及提供的文件如何辅助这个过程。描述中提到“Linux yum安装所需各种软件,完整。供yum安装使用。”表明这些文件可能是为了设置...