yum

yum命令

yum install packagename

yum源配置

从网络下载yum源文件,比如,CentOS6-Base.repo,放到目录中/etc/yum.repos.d/CentOS-Base.repo

yum clean all #清除以前使用yum的缓存

yum makecache #建立一个缓存,以后方便在缓存中搜索

yum list | grep telnet*      #查找网络yum源的telnet安装包

附:

网易(163)yum源是国内最好的yum源之一 ,无论是速度还是软件版本,都非常的不错,将yum源设置为163yum,可以提升软件包安装和更新的速度,同时避免一些常见软件版本无法找到。

下载163网易的yum源:
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

中科大的yum源:
wget http://centos.ustc.edu.cn/CentOS-Base.repo
sohu的yum源
wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo

原文地址:https://www.cnblogs.com/liluredhat/p/6810132.html