码迷,mamicode.com
首页 > 其他好文 > 详细

yum之yum源更新

时间:2018-01-08 18:38:36      阅读:1247      评论:0      收藏:0      [点我收藏+]

标签:proc   shel   ref   一个   出错   软件   恢复   包管理   tree   

一.yum介绍
yum含义: Yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及CentOS中的shell前端软件包管理器
yum作用: 能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软件包,无须繁琐地一次次下载、安装。

二.查看系统所用yum源
命令:yum repolist yum install tree



技术分享图片
系统默认的yum源(tree nc nmap):
* base*: mirrors.cn99.com
extras**: mirrors.cn99.com

  • updates*: mirrors.cn99.com

三.更新添加yum源
网站: http://mirrors.aliyun.com/help/epel
epel (系统yum源扩展)

步骤:epel——help
(1)第一步:备份你的原镜像文件,以免出错后可以恢复
mv /etc/yum.repos.d/CentOS-Base.repo/etc/yum.repos.d/CentOS-Base.repo.backup
(2)下载新的CentOS-Base.repo 到/etc/yum.repos.d/
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo







至此我们的yum源就更新完毕啦!大家可以yum install 安装自己所需软件喽!
如:HTOP IOTOP IFTOP

yum之yum源更新

标签:proc   shel   ref   一个   出错   软件   恢复   包管理   tree   

原文地址:http://blog.51cto.com/13520779/2058724

(1)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!