问题

[root@master docker]# cd docker && yum localinstall *.rpm -y
Loaded plugins: fastestmirror, langpacks
Existing lock /var/run/yum.pid: another copy is running as pid 11664.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 161 M RSS (575 MB VSZ)
    Started: Tue Jul 27 11:07:40 2021 - 23:07 ago
    State  : Sleeping, pid: 11664
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 161 M RSS (575 MB VSZ)
    Started: Tue Jul 27 11:07:40 2021 - 23:09 ago
    State  : Running, pid: 11664

解决

rm -f /var/run/yum.pid

永久禁止

[root@oracle pluginconf.d]# cd /etc/yum/pluginconf.d/
[root@oracle pluginconf.d]# ls
product-id.conf  refresh-packagekit.conf  rhnplugin.conf  security.conf  subscription-manager.conf
[root@oracle pluginconf.d]# vim refresh-packagekit.conf
[main]
enabled=0  --将原来的1改成0即可

Q.E.D.


只有创造,才是真正的享受,只有拚搏,才是充实的生活。