Red hat 6使用 CentOS7 的yum和yum源

  1. 删除redhat原有的yum

rpm -aq|grep yum|xargs rpm -e nodeps

  1. 下载yum安装文件

Wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-73.el6.centos.noarch.rpm

Wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

Wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm

Wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm

  1. 安装组件

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

后面2个以前装的时候还失败鸟

# rpm -ivh yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm

warning: yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY

error: Failed dependencies:

yum >= 3.0 is needed by yum-plugin-fastestmirror-1.1.30-37.el6.noarch

# rpm -ivh yum-3.2.29-73.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm

warning: yum-3.2.29-73.el6.centos.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY

error: Failed dependencies:

python-urlgrabber >= 3.9.1-10 is needed by yum-3.2.29-73.el6.centos.noarch

You have new mail in /var/spool/mail/root

  1. 少python组件

下载

http://mirrors.163.com/centos/6/os/x86_64/Packages/python-urlgrabber-3.9.1-11.el6.noarch.rpm

# rpm -ivh python-urlgrabber-3.9.1-11.el6.noarch.rpm

warning: python-urlgrabber-3.9.1-11.el6.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY

Preparing... ########################################### [100%]

file /usr/lib/python2.6/site-packages/urlgrabber/grabber.py from install of python-urlgrabber-3.9.1-11.el6.noarch conflicts with file from package python-urlgrabber-3.9.1-9.el6.noarch

file /usr/lib/python2.6/site-packages/urlgrabber/grabber.pyc from install of python-urlgrabber-3.9.1-11.el6.noarch conflicts with file from package python-urlgrabber-3.9.1-9.el6.noarch

file /usr/lib/python2.6/site-packages/urlgrabber/grabber.pyo from install of python-urlgrabber-3.9.1-11.el6.noarch conflicts with file from package python-urlgrabber-3.9.1-9.el6.noarch

file /usr/lib/python2.6/site-packages/urlgrabber/progress.pyc from install of python-urlgrabber-3.9.1-11.el6.noarch conflicts with file from package python-urlgrabber-3.9.1-9.el6.noarch

file /usr/lib/python2.6/site-packages/urlgrabber/progress.pyo from install of python-urlgrabber-3.9.1-11.el6.noarch conflicts with file from package python-urlgrabber-3.9.1-9.el6.noarch

#

  1. 下载个python2.6重装

http://mirrors.163.com/centos/6/os/x86_64/Packages/python-2.6.6-64.el6.x86_64.rpm

#rpm -e python-2.6.6-52.el6.x86_64 nodeps

# rpm -ivh python-2.6.6-64.el6.x86_64.rpm

warning: python-2.6.6-64.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY

error: Failed dependencies:

python-libs(x86-64) = 2.6.6-64.el6 is needed by python-2.6.6-64.el6.x86_64

#

  1. 继续修复依赖包

http://mirrors.163.com/centos/6/os/x86_64/Packages/python-libs-2.6.6-64.el6.x86_64.rpm

rpm -ivh python-libs-2.6.6-64.el6.x86_64.rpm python-2.6.6-64.el6.x86_64.rpm

# rpm -ivh python-libs-2.6.6-64.el6.x86_64.rpm python-2.6.6-64.el6.x86_64.rpm --nodeps

warning: python-libs-2.6.6-64.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY

Preparing... ########################################### [100%]

file /usr/lib64/libpython2.6.so.1.0 from install of python-libs-2.6.6-64.el6.x86_64 conflicts with file from package python-libs-2.6.6-52.el6.x86_64

file /usr/lib64/python2.6/CGIHTTPServer.py from install of python-libs-2.6.6-64.el6.x86_64 conflicts with file from package python-libs-2.6.6-52.el6.x86_64

file /usr/lib64/python2.6/CGIHTTPServer.pyc from install of python-libs-2.6.6-

file /usr/lib64/python2.6/distutils/sysconfig.pyc from install of python-libs-2.6.6-64.el6.x86_64 conflicts with file from package python-libs-2.6.6-52.el6.x86_64

file /usr/lib64/python2.6/lib-dynload/_fileio.so from install of python-libs-2.6.6-64.el6.x86_64 conflicts with file from package python-libs-2.6.6-52.el6.x86_64

64.el6.x86_64 conflicts with file from package python-libs-2.6.6-52.el6.x86_64

You have new mail in /var/spool/mail/root

  1. 好像出错更多了,给你面子不要是吧,强制安装

# rpm -ivh python-libs-2.6.6-64.el6.x86_64.rpm python-2.6.6-64.el6.x86_64.rpm --nodeps --force

warning: python-libs-2.6.6-64.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY

Preparing... ########################################### [100%]

1:python ########################################### [ 50%]

2:python-libs ########################################### [100%]

  1. Phtyon url 也要粗暴下

# rpm -ivh python-urlgrabber-3.9.1-11.el6.noarch.rpm

warning: python-urlgrabber-3.9.1-11.el6.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY

Preparing... ########################################### [100%]

file /usr/lib/python2.6/site-packages/urlgrabber/grabber.py from install of python-urlgrabber-3.9.1-11.el6.noarch conflicts with file from package python-urlgrabber-3.9.1-9.el6.noarch

file /usr/lib/python2.6/site-packages/urlgrabber/grabber.pyc from install of python-urlgrabber-3.9.1-11.el6.noarch conflicts with file from package python-urlgrabber-3.9.1-9.el6.noarch

file /usr/lib/python2.6/site-packages/urlgrabber/grabber.pyo from install of python-urlgrabber-3.9.1-11.el6.noarch conflicts with file from package python-urlgrabber-3.9.1-9.el6.noarch

file /usr/lib/python2.6/site-packages/urlgrabber/progress.pyc from install of python-urlgrabber-3.9.1-11.el6.noarch conflicts with file from package python-urlgrabber-3.9.1-9.el6.noarch

file /usr/lib/python2.6/site-packages/urlgrabber/progress.pyo from install of python-urlgrabber-3.9.1-11.el6.noarch conflicts with file from package python-urlgrabber-3.9.1-9.el6.noarch

# rpm -ivh python-urlgrabber-3.9.1-11.el6.noarch.rpm --nodeps --force

warning: python-urlgrabber-3.9.1-11.el6.noarch.rpm: Header V3 RSA/SHA1 Signature, k

时间: 2024-08-08 12:08:44

Red hat 6使用 CentOS7 的yum和yum源的相关文章

更换Red Hat Enterprise Linux 7 64位的yum为centos的版本

查看redhat原有的yum包有哪些: [[email protected] ~]# rpm -qa|grep yum yum-utils-1.1.31-24.el7.noarch yum-langpacks-0.4.2-3.el7.noarch yum-metadata-parser-1.1.4-10.el7.x86_64 yum-rhn-plugin-2.0.1-4.el7.noarch PackageKit-yum-0.8.9-11.el7.x86_64 yum-3.4.3-118.el7

Red Hat Enterprise Linux 6配置CentOS的yum源

前言: 由于使用redhat官方yum源需要注册购买server服务,否则就会提示注册,或者根本找不到rehat的源.但是CentOS是redhat的免费版,除了log和一些无关紧要的东西,其他都是一样的.甚至kernel源代码都是一样的.所以我们可以使用CentOS的yum源代替redhat的yum源. <<<<< <<<<<<<本文笔者亲测成功>>>>>>>>>>>

Debian, Red Hat, Slackware的软件安装了解

参考:https://www.linux.org/threads/installing-new-software-debian-red-hat-slackware.4119/ linux在安装软件上大致分为三类,Red Hat,Slackware,Debian Red Hat:由red hat公司发行的Red Hat Linux,centos相当于这个版本的Linux的免费版,由red hat linux的开源代码略作改编而来,因此也属于red hat的分类 red hat 的软件安装使用rpm

Linux关闭防火墙命令red hat/CentOs7

一.下面是red hat/CentOs7关闭防火墙的命令! 1:查看防火状态 systemctl status firewalld service  iptables status 2:暂时关闭防火墙 systemctl stop firewalld service  iptables stop 3:永久关闭防火墙 systemctl disable firewalld chkconfig iptables off 4:重启防火墙 systemctl enable firewalld servi

yum报错:This system is not registered to Red Hat Subscription Management.解决办法

使用yum安装软件,报错如下: [[email protected] ~]# yum -y install mariadbLoaded plugins: langpacks, product-id, subscription-managerThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.No package mariadb

redhat7(centos7) not registered to Red Hat Subscription Management

[[email protected] ~]# yum install ntp Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. http://mirro

Red Hat 6.5 本地 yum源搭建

#mkdir /media/cdrom #mount /dev/cdrom /media/cdrom . 本地光盘镜像 mount -o loop -t iso9600 /mnt/cdrom/your-iso /media/cdrom .挂在DVD镜像文件 #cd /etc/yum.repos.d #ls [[email protected] yum.repos.d]# ls rhel-source.repo #vim rhel-source.repo [rhel-source] name=Re

Red Hat红帽添加yum epel源

什么是企业版 Linux 附加软件包(EPEL)? 企业版 Linux 附加软件包(以下简称 EPEL)是一个由特别兴趣小组创建.维护并管理的,针对 红帽企业版 Linux(RHEL)及其衍生发行版(比如 CentOS.Scientific Linux.Oracle Enterprise Linux)的一个高质量附加软件包项目. EPEL 的软件包通常不会与企业版 Linux 官方源中的软件包发生冲突,或者互相替换文件.EPEL 项目与 Fedora 基本一致,包含完整的构建系统.升级管理器.镜

red hat无法使用yum源的问题

今天想玩一下red hat,自己英语不行,想找一个中文输入法注释一下:却发现yum install ibus出现以下错误: Loaded plugins: product-id, refresh-packagekit, security, subscription-managerUpdating certificate-based repositories. 先是参考了以下网站的意见,http://www.linuxidc.com/Linux/2013-12/93375.html 出现"The