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

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

yum之yum源更新
系统默认的yum源(tree nc nmap):
* base*: mirrors.cn99.com
extras**: mirrors.cn99.com

  • updates*: mirrors.cn99.com

三.更新添加yum源
epel (系统yum源扩展)

步骤:epel——help
(1)第一步:备份你的原镜像文件,以免出错后可以恢复
touch /etc/yum.repo.d/CentOS-Base.repo.backup
cp /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
(3) yum clean all 清除yum缓存
(4)yum repolist 查看更新yum源(自动更新)

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

转载于:https://blog.51cto.com/13520779/2058724

相关文章:

  • 2021-12-19
  • 2022-01-04
  • 2021-12-17
  • 2021-12-16
  • 2021-07-11
  • 2022-12-23
猜你喜欢
  • 2021-11-06
  • 2021-10-15
  • 2021-12-05
  • 2022-02-11
  • 2022-02-11
  • 2022-12-23
  • 2022-01-07
相关资源
相似解决方案