Linux1天1命令—14.yum

yum全称为yellow dog updater modified,是一个软件包管理器

作用是能从指定服务器自动下载rpm包安装并自动处理依赖关系

yum提供了查、装 删某一个或一组甚至全部软件包的简洁命令,便于使用


相关命令

- yum clean all           -- 清除原有yum缓存
- yum makecache fast      -- 缓存软件包

- yum install software    -- 安装
- yum reinstall software  -- 重新安装
- yum update              -- 更新

- yum list software       -- 查看指定软件
- yum list all            -- 查看所有软件
- yum list installed      -- 列出已安装软件
- yum list available      -- 列出可安装软件
- yum repolist            -- 列出仓库信息

- yum info software       -- 查看软件信息
- yum search software     -- 根据软件信息查找软件
- yum whatprovides file   -- 根据文件找出包含此文件的软件
- yum history             -- 查看系统中软件管理信息
- yum history info num    -- 对该数字为id的信息进行展示

- yum remove software     -- 卸载

- yum groups list         -- 列出软件组
- yum groups info         -- 查看软件组的信息
- yum groups install sfgroup     -- 安装软件组
- yum groups remove sfgroup      -- 卸载软件组

安装部分包

- yum -y install xinetd
- yum -y install telnet-server
原文地址:https://www.cnblogs.com/FGdeHB/p/15781497.html