rhel使用Centos源

环境:rhel 6.4

rhel Linux如果要使用网络源,需要订购红帽公司的RHN服务....

[[email protected] ~]# rpm -qa | grep yum
yum-rhn-plugin-0.9.1-43.el6.noarch
yum-metadata-parser-1.1.2-16.el6.x86_64
yum-3.2.29-40.el6.noarch
[[email protected] ~]#
[[email protected] ~]# rpm -qa | grep yum | xargs rpm -e --nodeps
[[email protected] ~]# rpm -qa | grep yum
[[email protected] ~]#
[[email protected] ~]# wget http://ftp.nara.wide.ad.jp/pub/Linux/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
[[email protected] ~]# wget http://ftp.nara.wide.ad.jp/pub/Linux/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
[[email protected] ~]# wget http://ftp.nara.wide.ad.jp/pub/Linux/centos/6/os/x86_64/Packages/yum-3.2.29-73.el6.centos.noarch.rpm
[[email protected] ~]# wget http://ftp.nara.wide.ad.jp/pub/Linux/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm
[[email protected] ~]# wget http://ftp.nara.wide.ad.jp/pub/Linux/centos/6/os/x86_64/Packages/python-urlgrabber-3.9.1-11.el6.noarch.rpm
[[email protected] ~]# rpm -Uvh python-urlgrabber-3.9.1-11.el6.noarch.rpm
[[email protected] ~]# rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm
[[email protected] ~]# rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
[[email protected] ~]# rpm -ivh yum-3.2.29-73.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm

使用163的Centos源:

http://mirrors.163.com/.help/centos.html

阿里云Centos源:

http://mirrors.aliyun.com/help/centos

[[email protected] ~]# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
[[email protected] ~]# cd /etc/yum.repos.d/
[[email protected] yum.repos.d]# cp ~/CentOS6-Base-163.repo ./rhel-source.repo
[[email protected] yum.repos.d]# sed -i ‘s/\$releasever/6/g‘ CentOS6-Base-163.repo
[[email protected] yum.repos.d]# yum clean all
[[email protected] yum.repos.d]# yum makecache
Loaded plugins: fastestmirror, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Determining fastest mirrors
base                                                                 | 3.7 kB     00:00    
base/group_gz                                                        | 226 kB     00:00    
base/filelists_db                                                    | 6.4 MB     00:22    
base/primary_db                                                      | 4.7 MB     00:14    
base/other_db                                                        | 2.8 MB     00:06    
extras                                                               | 3.4 kB     00:00    
extras/filelists_db                                                  |  38 kB     00:00    
extras/prestodelta                                                   | 1.3 kB     00:00    
extras/primary_db                                                    |  37 kB     00:00    
extras/other_db                                                      |  51 kB     00:00    
updates                                                              | 3.4 kB     00:00    
updates/filelists_db                                                 | 585 kB     00:02    
updates/prestodelta                                                  |  49 kB     00:00    
updates/primary_db                                                   | 749 kB     00:02    
updates/other_db                                                     | 8.4 MB     00:43    
Metadata Cache Created
[[email protected] yum.repos.d]#
[[email protected] yum.repos.d]# yum -y install vim lrzsz

更换163源成功。

[[email protected] ~]# rpm -ivh epel-release-6-8.noarch.rpm

epel rpm下载:

https://fedoraproject.org/wiki/EPEL/zh-cn

版本 地址

第5代企业Linux:

(download)

http://mirrors.isu.net.sa/pub/fedora/fedora-epel/5/i386/repoview/epel-release.html
http://mirrors.isu.net.sa/pub/fedora/fedora-epel/5/i386/epel-release-5-4.noarch.rpm

第6代企业Linux:

(download)

http://mirrors.isu.net.sa/pub/fedora/fedora-epel/6/i386/repoview/epel-release.html
http://mirrors.isu.net.sa/pub/fedora/fedora-epel/6/i386/epel-release-6-8.noarch.rpm

第7代企业Linux:

(download)

http://mirrors.isu.net.sa/pub/fedora/fedora-epel/7/x86_64/repoview/epel-release.html
http://mirrors.isu.net.sa/pub/fedora/fedora-epel/7/x86_64/e/epel-release-7-6.noarch.rpm
时间: 2024-12-21 12:44:03

rhel使用Centos源的相关文章

rhel替换centos源

参考文档:http://crushlinux.blog.51cto.com/2663646/1564136 1.卸载redhat原有的yum rpm -qa | grep yum | xargs rpm -e --nodeps 2.下载yum包 wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm wget http://mirrors.163.com/ce

rhel 配置centos源

1.删除自带的yum包,清除/etc/yum.repos.d下面的文件 rpm -qa|grep yum|xargs rpm -e --nodeps(不检查依赖,直接删除rpm包) 2.安装centos的yum wget https://mirrors.aliyun.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm wget https://mirrors.aliyun.com/centos/6

rhel、centos好用的yum源

http://pkgs.repoforge.org/rpmforge-release/ rhel.centos好用的yum源

rhel替换centosyum源

由于rhel需要注册才能使用yum源,所以会更换成centos源. 接下来就用rhce的系统,安装centos源. 需要包的地址:http://mirrors.163.com/centos/7/os/x86_64/Packages/ 1.安装wget: 1 [[email protected] centosyum]# wget http://mirrors.163.com/centos/7/os/x86_64/Packages/wget-1.14-13.el7.x86_64.rpm 2 3 [[

RHEL 使用epel源

转自http://www.linuxidc.com/Linux/2012-10/71850.htm 设置epel源.方法如下: 32位系统选择:rpm -ivh http://download.Fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm64位系统选择:rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch

[RHEL或centos linux环境]安装MongoDB教程

声明:翻译官方文档:http://docs.mongodb.org/master/tutorial/install-mongodb-on-red-hat/?_ga=1.146202678.362433698.1425911361 概述: 通过该教程学会在RHEL或centos下安装mongodb的rpm包. 需要安装的包: MongoDB提供了内嵌在其私有仓库中的官方支持包.该仓库提供了下列包: · mongodb-org 此包是一个原始包,自动安装以下四个rpm包 · mongodb-org-

【转】Linux CentOS内核编译:下载CentOS源码、编译2.6.32-220的错误(apic.c:819 error 'numi_watchdog' undeclared)

一.下载CentOS源码 1.1 查看CentOS版本 cat /etc/issue 1.2 查看Linux内核版本 uname -r 1.3 下载 文件名:kernel-2.6.32-220.el6.src.rpm 下载地址:http://vault.centos.org/6.2/os/Source/SPackages/ 官网:http://vault.centos.org/ 1.4 从kernel-2.6.32-220.el6.src.rpm获取源码 1. rpm -i kernel-2.6

CentOS源码编译安装MySQL 5.5.15

CentOS源码编译安装MySQL 5.5.15 文章目录 [隐藏] 安装编译工具 下载源码 安装cmake和bison 编译安装MySQL 一些相关设置 安装编译工具 yum install gcc gcc-c++ yum install ncurses-devel 下载源码 mkdir -p /tmp cd /tmp wget http://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.15.tar.gz/from/http://mysql.

RHEL 7 / CentOS 7 : Disable Firewalld and use iptables

systemctl disable firewalld systemctl stop firewalld yum -y install iptables-services systemctl enable iptables systemctl start iptables RHEL 7 / CentOS 7 : Disable Firewalld and use iptables