D:\workspacejava\aco-pro\experience\noun\linux\linux安装\linux安装Yum.txt
yum check-update
yum update
yum update kernel
yum upgrade
yum install 服务名
yum remove 服务名
yum clean packages
yum clean headers
yum clean old headers
yum clean all
yum list
yum list firfox* (可以在rpm包名中使用通配符,查询类似的rpm包)
yum list updates
yum list installed
yum list extras
yum info
yum info firefox*
yum info updates
yum info installed
yum info extras
yum search firofox
yum provides firefox
mkdir /etc/yum.repos.d_backup
mv /etc/yum.repos.d/* /etc/yum.repos.d_backup/
cd /etc/yum.repos.d
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum -y update
ps aux|grep yum
kill -9 pid
yum clean all
yum makecache
Another app is currently holding the yum lock;
解决:rm -rf /var/run/yum.pid来强行解除锁定