RedHat Enterprise Linux 6.4使用Centos 6的yum源问题
RedHat Enterprise Linux 6.4使用Centos 6的yum源问题
作为一名新手,学习Linux已经一个月了,其间遇到了不少问题,而今天笔者遇到的问题是
#yum install pam-devel
#This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Nothing to do
经过一个上午的研究发现,其实如果使用redhat的yum源需注册付费,费时费力,况且我仅仅只是一个初学者,只在自己电脑上搭了个redhat系统而已,没必要为此大费周章。通过度娘发现了很多解决办法,但很多办法在我电脑上行不通,才知道广大网友的环境是不一样的,所以他们的办法不一定符合自己的电脑。
下面是笔者结合网上的相关资料,针对与我相同环境的系统的解决办法。
系统:RedHat Enterprise Linux 6.4-x86_64 md5:467B53791903F9A0C477CBB1B24FFD1F
这是下载地址:http://pan.baidu.com/s/1bniVAMj
第一步下载相关安装包
可以通过http://mirrors.163.com/centos下载,这是笔者已经下载好的http://pan.baidu.com/s/1qW0MbgC
第二步卸载Redhat自带的yum
#rpm -qa | grep yum | xargs rpm -e --nodeps
第三步安装下载的安装包
python-iniparse-0.3.1-2.1.el6.noarch.rpm
yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
yum-3.2.29-40.el6.centos.noarch.rpm
yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
这四个包均位于:http://mirrors.163.com/centos/6.6/os/x86_64/Packages/下面。
#rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm
#rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
#rpm -ivh yum-3.2.29-40.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm(注意:这两个安装命令要一起使用,待安装的两个包之间用空格分开)
第四步到http://mirrors.163.com的 centos帮助文档
中下载CentOS6-Base-163.repo文件,存放到/etc/yum.repo.d中
#wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
第五步将Centos6-Base-163.repo中的$releasever改为Centos的版本号即可。如你使用的是Centos6.4,则只需将出现$releasever地方改为6,全文约10处修改之处。
为了防止错误,也可使用我已修改好的文件http://pan.baidu.com/s/1o6AZ23o
文件修改成如下即可:
# 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 clean all 清除原有缓存
第七步 yum makecache 获取yum列表
等待,大约三分钟后出现下面提示,表示yum更改完成:
Metadata Cache Created
参考链接:
Linux学习笔记之RedHat Enterprise Linux 6.4 使用 Centos 6 的yum源问题
Yum已死,DNF万岁
Linux发行版Fedora的最新版本Fedora 22将抛弃Yum包管理器,替代之DNF,原因是Yum已被认为是一个死亡的项目。Yum有三大缺陷:无文件描述的API,坏掉的依赖解决算法,无力重构内部功能。而第三个问题与第一个问题息息相关。DNF是Yum的一个分支,致力于避免这些问题。DNF能运行在 Python 2 和Python 3上,也能与Yum在系统中共存。用户仍然可以下载Yum包,但Yum可执行文件会被重命名为 yum-deprecated。
RedHat 6.2 Linux修改yum源免费使用CentOS源 http://www.linuxidc.com/Linux/2013-07/87383.htm
配置EPEL YUM源 http://www.linuxidc.com/Linux/2012-10/71850.htm
Redhat 本地yum源配置 http://www.linuxidc.com/Linux/2012-11/75127.htm
yum的配置文件说明 http://www.linuxidc.com/Linux/2013-04/83298.htm
RedHat 6.1下安装yum(图文) http://www.linuxidc.com/Linux/2013-06/86535.htm
YUM 安装及清理 http://www.linuxidc.com/Linux/2013-07/87163.htm
CentOS 6.4上搭建yum本地源 http://www.linuxidc.com/Linux/2014-07/104533.htm
本文永久更新链接地址:http://www.linuxidc.com/Linux/2015-05/117666.htm
RedHat Enterprise Linux 6.4使用Centos 6的yum源问题的更多相关文章
- 【转发】RedHat Enterprise Linux 6.4 使用 Centos 6 的yum源问题
		
作为一名新手,学习Linux已经一个月了,其间遇到了不少问题,而今天笔者遇到的问题是 #yum install pam-devel #This system is not registered to ...
 - RedHat Enterprise Linux 6.4使用Centos 6 的yum源                                                    分类:            服务器搭建             Nginx             2015-07-14 14:11    5人阅读    评论(0)    收藏
		
转载自:http://blog.sina.com.cn/s/blog_50f908410101cto6.html 思路:卸载redhat自带yum,然后下载centos的yum,安装后修改配置文件 1 ...
 - 关于RedHat Enterprise Linux 6.4使用Centos 6 的yum源
		
思路:卸载redhat自带yum,然后下载centos的yum,安装后修改配置文件 1.首先到http://mirrors.163.com/centos下载软件包 x86 地址:http://mirr ...
 - RedHat Enterprise Linux 6.4 使用 Centos 6 的yum(转)
		
概述 redhat的yum源需注册付费,费时费力,整理RedHat yum 安装CentOS的方法. 安装系统文件 系统:RedHat Enterprise Linux 6.4-x86_64 md5: ...
 - RedHat Enterprise Linux 6.4-x86_64 md5:467B53791903F9A0C477CBB1B24FFD1F
		
RedHat Enterprise Linux 6.4-x86_64 md5:467B53791903F9A0C477CBB1B24FFD1F 这是下载地址:http://pan.baidu.com/ ...
 - 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 ...
 - 使用Xmanager远程访问Redhat Enterprise Linux 6.1
		
使用Xmanager远程访问Redhat Enterprise Linux 6.1 在Linux服务器开启gdm 配置防火墙 配置selinux 使用xmanager连接linux服务器 在Lin ...
 - RHEL(RedHat Enterprise Linux)5/6 ISO镜像下载
		
本文贴出了RHEL(RedHat Enterprise Linux)发行版本中常用的服务器版本的ISO镜像文件,供大家下载学习使用,贴出的版本有RedHat Enterprise Linux(RHEL ...
 - 硬盘安装RedHat Enterprise Linux 6(转载)
		
准备条件: (1)RedHat Enterprise Linux 6安装镜像 下载见文章末尾 (2)grub文件(用于引导安装) ...
 
随机推荐
- Tunnel Warfare(hdu1540 线段树)
			
Tunnel Warfare Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) T ...
 - 几个常用T_SQL语句比较
			
UNION ALL VS UNION : union all 对两个结果进行并集操作,包括重复行,即所有的结果全部显示,不管是不是重复:union 对两个结果集进行并集操作,不包括重复行,相当于 di ...
 - js相关判断
			
//正则表达式判断是否为空 /^\s*?$/.test(obj) //批量转换方法 function sort(s){return s.match(/\d/g).sort()+'' } //判断是否相 ...
 - ubutu强制关闭应用程序的方法
			
1.打开终端,输入命令 top 2.查看应用程序PID号,比如是8080 3.然后终端输入 kill 8080 ,行了
 - paste 命令
			
Linux paste命令用于合并文件的列. paste指令会把每个文件以列对列的方式,一列列地加以合并. 语法: paste [-s][-d <间隔字符>][--help][--vers ...
 - Mariadb MySQL逻辑条件判断相关语句、函数使用举例介绍
			
MySQL逻辑条件判断相关语句.函数使用举例介绍 By:授客 QQ:1033553122 1. IFNULL函数介绍 IFNULL(expr1, expr2) 说明:假如expr1 不为NULL,则 ...
 - as 打包报错
			
错误:Android Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease' ...
 - [iOS] UICollectionView初始化滚动到中间的bug
			
转载请保留地址wossoneri.com 问题 首先看一下我之前写的demo:link demo是封装了一个控件,直接在MainViewController的viewWillAppear里初始化,并且 ...
 - 'adb remount'的作用是什么?在什么情况下有用?
			
'adb remount' 将 '/system' 部分置于可写入的模式,默认情况下 '/system' 部分是只读模式的.这个命令只适用于已被 root 的设备. 在将文件 push 到 '/sys ...
 - PC客户端开发细节记录:保存GUID到VARIANT
			
有两个 API 可以实现保存 GUID 到 VARIANT InitVariantFromGUIDAsBuffer 以字节数组形式保存,保存类型为 VT_ARRAY | VT_UI1,相当于字节拷贝, ...