Yum(全称 Yellow Dog Updater)是一个在 Fedora 和 RedHat 以及 CentOS 中的 Shell 前端软件包管理器。基于 RPM 包管理,可以从指定的服务器自动下载RPM包而且安装,能够自动处理依赖性关系,而且一次安装全部依赖的软件包.前端
yum install foo-x.x.x.rpm
yum remove foo-x.x.x.rpm
yum update foo
yum info foo
yum check-update
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
根据本身的系统选择合适的 yum源centos
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
或缓存
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
yum clean all yum makecache
注意:服务器
使用 yum update 会升级系统内核,若是不想升级系统内核能够使用 yum upgrade !!!curl