RedHat5--yun源无法使用问题解决

YUM是Redhat Linux在线安装更新及软件的工具,但是这是RHEL5的收费功能,如果没有购买Redhat的服务时不能使用RHEL5的更新源的,会提示注册。

由于CentOS是从Redhat演化而来的免费Linux版本,因此可以利用CentOS的yum更新源来实现RHEL5的YUM功能。配置方法如下:

配置yum更新源

备份:mv /etc/yum.repos.d/rhel-debuginfo.repo /etc/yum.repos.d/rhel-debuginfo.repo.repo.bak

创建文件:vi /etc/yum.repos.d/rhel-debuginfo.repo

在新创建的文件例输入以下内容保存并退出

[base]
name=CentOS-5-Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://ftp.sjtu.edu.cn/centos/5/os/$basearch/
gpgcheck=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#released updates
[update]
name=CentOS-5-Updates
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=updates
baseurl=http://ftp.sjtu.edu.cn/centos/5/updates/$basearch/
gpgcheck=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#packages used/produced in the build but not released
[addons]
name=CentOS-5-Addons
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=addons
baseurl=http://ftp.sjtu.edu.cn/centos/5/addons/$basearch/
gpgcheck=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#additional packages that may be useful
[extras]
name=CentOS-5-Extras
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=extras
baseurl=http://ftp.sjtu.edu.cn/centos/5/extras/$basearch/
gpgcheck=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5-Plus
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=centosplus
baseurl=http://ftp.sjtu.edu.cn/centos/5/centosplus/$basearch/
gpgcheck=0
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#contrib - packages by Centos Users
[contrib]
name=CentOS-5-Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=contrib
baseurl=http://ftp.sjtu.edu.cn/centos/5/contrib/$basearch/
gpgcheck=0
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
# vi dag.repo
[dag]
name=Dag RPM Repository for RHEL5
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el5/en/$basearch/dag/
enabled=1
gpgcheck=0
gpgkey=http://ftp.riken.jp/Linux/dag/packages/RPM-GPG-KEY.dag.txt

使用:“yum install openssh*” 检测是否安装成功;显示如下图则表明安装成功yum源

时间: 2024-08-02 20:36:28

RedHat5--yun源无法使用问题解决的相关文章

本地yum源无法使用 ,rpm --import public.gpg.key

一次重装CentOS7系统后,挂载光驱并制作成本地yum源却无法使用yum进行安装,这TM着实有点闹心.o(>﹏<)o 案发现场: [[email protected] ~]# yum -y install /mnt/Packages/vsftpd-3.0.2-22.el7.x86_64.rpm You have enabled checking of packages via GPG keys. This is a good thing.However, you do not have an

yum命令及配置yun源

一.yum命令 二.yum源配置文件 三.将光驱配置为yum源 四.其他 一.yum命令 1.安装 yum install package_name    #用yum安装程序,可一次安装多个,彼此间用空格隔开 yum reinstall package_name    #重新安装程序,类似的有rpm -ivh packages_name --replacepkgs yum groupinstall group_name    #用yum安装包组,可一次安装多个,彼此间用空格隔开 CentOS 6

linux下配置yun源

备份原yum源   /etc/yum.repos.d/centos一base.repo 下载yum源       wagt 源网址/源名称/etc/yum.repos.d/原yum名

低版本的yum源无法使用

当你安装centos或者是linux低版本的系统时  配置本地iso为yum源 输入yum reppolist 提示:Another app is currently holding the yum lock; waiting for it to exit... 可能的原因是yum系统正在升级,yum被锁定了 可以杀死yum进程. 方法:rm -f /var/run/yum.pid 就可以了.

Redhat5-yum源无法使用的解决

YUM是Redhat Linux在线安装更新及软件的工具,但是这是RHEL5的收费功能,如果没有购买Redhat的服务时不能使用RHEL5的更新源的,会提示注册. 由于CentOS是从Redhat演化而来的免费Linux版本,因此可以利用CentOS的yum更新源来实现RHEL5的YUM功能.配置方法如下: 配置yum更新源 备份:mv /etc/yum.repos.d/rhel-debuginfo.repo /etc/yum.repos.d/rhel-debuginfo.repo.repo.b

Matlab 2013b 在El Capitan 中无法使用问题解决

更新了mac的操作系统到El capitan, 结果发现Matlab打不开了,每次都弹出一个Java error的窗口.现实如下内容 java.lang.NullPointerException at com.mathworks.widgets.WindowsWidgetFactory$SearchAndClearButton.anyText(WindowsWidgetFactory.java:187) at com.mathworks.widgets.WindowsWidgetFactory$

OpenStack安装过程Yum源的问题解决

首先说Openstack官网的安装文档做的太棒了,文档链接:http://docs.openstack.org/mitaka/install-guide-rdo/. 但是在执行 yum install python-openstackclient 遇到如下错误,有若干依赖包无法下载. python2-babel-2.3.4-1.el7.noar FAILED                                          ====-                 ] 700

制作本地yun源 http方式的详解

1 准备化环境 web环境nginx 和 设计目录结构(可以参考 mirrors.163.com) nginx的配置文件 [[email protected]_server conf.d]# cat mirrors.conf server {         listen 80;         root /data/mirrors;         server_name mirrors.test.com         access_log off;         autoindex on

VM中CentOS7本地配置yum源方法

因为虚拟机中安装CentOS7未联网,所以通过本地配置yun源来实现安装操作. 一.通过光盘当做本地yum仓库 1.挂载当前光盘至某目录 ]#mount /dev/cdrom  /mnt 或者# mount -r -t iso9660 /dev/cdrom /media/cdrom 2.创建配置文件 首先将以前的配置文件全都移至新建目录 ]#cd  /etc/yum.repos.d ]#mkdir repodir ]#mv CentOS* repodir 新建一个配置文件: ]#vim loca