Why does the Yum fails with the error 'Another app is currently holding the yum lock waiting for it to exit' ?
Issue
- The
yum
command fails with the below error:
[root@rhel7 ~]# yum repolist
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Existing lock /var/run/yum.pid: another copy is running as pid 2438.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 99 M RSS (560 MB VSZ)
Started: Mon May 9 07:05:51 2022 - 00:15 ago
State : Running, pid: 2438
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 103 M RSS (568 MB VSZ)
Started: Mon May 9 07:05:51 2022 - 00:17 ago
State : Running, pid: 2438
Environment
- Red Hat Enterprise Linux 8.
- Red Hat Enterprise Linux 7.
- Red Hat Enterprise Linux 6.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.