yum之yum源更新
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了yum之yum源更新相关的知识,希望对你有一定的参考价值。
一.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源更新的主要内容,如果未能解决你的问题,请参考以下文章