打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
配置RedHat使用163的yum源
userphoto

2016.10.19

关注

配置redhat 使用163 or sohu 的yum 源 

1.#cp /etc/yum.repos.d/rhel-debuginfo.repo /etc/yum.repos.d/rhel-debuginfo.repo.bk 首先备份下redhat yum  的配置样例文件。

2.#wget http://mirrors.163.com/.help/CentOS-Base-163.repo 或者 #wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo 下载163或sohu提供的yum 配置文件

3.#vi CentOS-Base-163.repo 替换$releaserver 为5或者6[5/6为centos的版本] 

4.#yum makecache  第3部不修改则第4部会出现如下错误:“[root@localhost ~]# yum makecache
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
http://mirrors.163.com/centos/5Server/addons/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: addons. Please verify its path and try again”

5.#cd /etc/pki/rpm-gpg #wget http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#yum update 错误信息:warning:rpmts_hdrfromfdno:header v3 dsa signature:nokey,key id e823568 GPG key retrieval:[errno 5] oserror:[errno 2] no such file or directory:'/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5'

原因:localhost不存在指定的文件/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

6.#yum install yum-fastestmirror 安装fastestmirror插件可自动选择最快的yum 源

7.#yum install -y yumex 安装图形化界面的yum

yum 常用的命令 #yum install -y xxx   安装xxx软件 #yum info xxx           查看xxx软件的基本信息 #yum remove/erase xxx 卸载xxx软件 


本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
redhat7 yum安装软件时提示This system is not registered with RHN. 解决方案
RedHat5上配置YUM方法以及YUM的使用方法
CentOS 6 SRPMS / Source RPM’s repository | Rambletronics
redhat linux enterprise 6.2 yum 安装gcc
RedHat 5.5配置YUM 从centos5源与光盘源更新rpm包
CentOS下yum安装、源的选择及介绍
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服