最近折腾CentOS和kubernetes,遇到一些安装问题,把和yum相关的逐步总结如下:
如何用本地的cdrom作为yum源
rpm -qa | grep createrepo
如果没有的话,转到/mnt/Packages目录下,通过rpm -Uhv createrepo...安装
[cdrom] |
yum --disablerepo=* --enablerepo=cdrom list
yum --disablerepo=* --enablerepo=cdrom -y install php-oci php-mstring
解除yum的锁定
在安装的时候经常遇到Another app is currently holding the yum lock; waiting for it to exit…
运行命令
rm -rf /var/run/yum.pid
强行解锁.
原文:http://www.cnblogs.com/ericnie/p/6809586.html