位置: 编程技术 - 正文

RHEL配置Centos yum源的方法(rhel配置网卡文件和图形界面)

编辑:rootadmin

推荐整理分享RHEL配置Centos yum源的方法(rhel配置网卡文件和图形界面),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:rhel配置yum源,rhel配置,rhel配置yum源,rhel配置yum源,rhel配置yum源,rhel配置ip,rhel配置ip地址,rhel配置ip地址,内容如对您有帮助,希望把文章链接给更多的朋友!

由于RHEL的yum在线更新是收费的,如果没有注册的话是不能使用的,即不能在线安装软件。在这种情况下,如果我们使用的机器安装的是RHEL系统要是每次安装软件先挂载本地光盘会很繁琐,而且有些软件也是老版本的,这种情况下我们可以借助CentOS的YUM源来满足我们的需求。

一、删除RHEL原有的YUM

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

二、下载CentOS的yum安装包(源)

wget

wget -ivh yum-metadata-parser-1.1.2-4.el5.x_.rpm

rpm --import RPM-GPG-KEY-CentOS-5

rpm –ivh yum-3.2.-.el5.centos.noarch.rpm yum-fastestmirror-1.1.-.el5.centos.noarch.rm

至此我们就可以在线使用yum了

四、修改yum源

为了使用在线使用Yum安装软件更快,我们可以使用国内的网易Yum源或者其他国内yum源

五、更改yum源

#我们使用网易的CentOS镜像源

cd /etc/yum.repos.d/

vi rhel-debuginfo.repo

# 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

RHEL配置Centos yum源的方法(rhel配置网卡文件和图形界面)

# remarked out baseurl= line instead.

#

#

[base]

name=CentOS-5 - Base - .com

mirrorlist= updates

[updates]

name=CentOS-5 - Updates - .com

mirrorlist= used/produced in the build but not released

[addons]

name=CentOS-5 - Addons - .com

mirrorlist= packages that may be useful

[extras]

name=CentOS-5 - Extras - .com

mirrorlist= packages that extend functionality of existing packages

[centosplus]

name=CentOS-5 - Plus - .com

mirrorlist= - packages by Centos Users

[contrib]

name=CentOS-5 - Contrib - .com

mirrorlist= clean all

yum makecache

七、更新

yum update

centos 6.6默认iptable规则详解 今天在自己电脑上新装了centos6.6虚拟机,然后装了nginx,没有进行任何其他设置,然后就发现只能在centos上面可以访问nginx,看了下iptable的规则[root@centos

CentOS如何设置在同一窗口打开文件夹? CentOS6.5系统中,每次双击文件夹,默认都会在一个新窗口中打开,并且打开的文件夹不像windows那样,没有前进/后退/向上按钮,也没有文件夹的具体

centos7文件系统管理btrfs详解 一、基础简介Btrfs(又名:B-tree,ButterFS,BetterFS),GPL授权,Oracle从研发,写实复制更新机制CoW,其主要是为了取代ext2,ext3,ext4,其主要功能有例如

本文链接地址:https://www.jiuchutong.com/biancheng/360651.html 转载请保留说明!

上一篇:CentOS下如何避免文件覆盖?(centos屏蔽ip)

下一篇:centos 6.6默认iptable规则详解(centos6设置ip)

免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络