Linux基础命令介绍十一:软件包管理

wget-1.14-10.el7_0.1.x86_64 [root@centos7 tmp]# rpm -Uvh wget-1.14-13.el7.x86_64.rpm  准备中...                          ################################# [100%] 正在升级/安装...    1:wget-1.14-13.el7                 ################################# [ 50%] 正在清理/删除...    2:wget-1.14-10.el7_0.1             ################################# [100%] [root@centos7 tmp]# rpm -q wget wget-1.14-13.el7.x86_64 

2、yum 下载更新器

yum [options] [command] [package ...] 

yum是一个基于rpm的交互式软件包管理器。yum在安装软件时并不需要像rpm那样手动查找安装,它在工作时会搜索源中的rpm包,并自动解决依赖关系,自动下载并安装。yum默认源配置文件位于目录/etc/yum.repos.d内。

命令install表示安装

[root@centos7 ~]# yum install vim-common 已加载插件:fastestmirror Loading mirror speeds from cached hostfile  * base: mirrors.yun-idc.com  * extras: mirrors.yun-idc.com  * updates: