Skip to content

Instantly share code, notes, and snippets.

@netnr netnr/yum.sh

Created Mar 22, 2020
Embed
What would you like to do?
yum命令管理
yum install package1 # 安装指定的安装包package1
yum groupinsall group1 # 安装程序组group1
yum update # 全部更新
yum update package1 # 更新指定程序包package1
yum check-update # 检查可更新的程序
yum upgrade package1 # 升级指定程序包package1
yum groupupdate group1 # 升级程序组group1
yum info package1 # 显示安装包信息package1
yum list # 显示所有已经安装和可以安装的程序包
yum list installed # 列出已安装的包
yum list installed kernel-* # 模糊搜索已安装的内核
yum list package1 # 显示指定程序包安装情况package1
yum list updates # 可更新的包
yum groupinfo group1 # 显示程序组group1信息
yum search string # 根据关键字string查找安装包
yum remove package1 # 删除程序包package1
yum groupremove group1 # 删除程序组group1
yum deplist package1 # 查看程序package1依赖情况
yum clean packages # 清除缓存目录下的软件包
yum clean headers # 清除缓存目录下的 headers
yum clean oldheaders # 清除缓存目录下旧的 headers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.