yum 知识整理
Posted TiestoRay
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了yum 知识整理相关的知识,希望对你有一定的参考价值。
官网
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-yum.html#sec-Checking_For_and_Updating_Packages
makecache
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sec-Working_with_Yum_Cache.html
yum list glob_expression 全局表达式搜索
yum list ntp*
yum list ntp-*86*
yum list exp1 exp2 并集搜索
yum list installed expression
yum list all
yum repolist
yum list available
yum info pkgname
yum install -y pkgname1 pkgname2
yum remove pkgname1 pkgname2
在线安装缓存
sed -i ‘s/keepcache=0/keepcache=1/g‘ /etc/yum.conf
缓存地址:/var/cache/yum/
以上是关于yum 知识整理的主要内容,如果未能解决你的问题,请参考以下文章