After resolving a problem with network connectivity on a CentOS 7 Linux server, I attempted to install a package using yum, but received the message "Another app is currently holding the yum lock; waiting for it to exit..."
# yum install rdesktop Loaded plugins: fastestmirror, langpacks Existing lock /var/run/yum.pid: another copy is running as pid 16020. Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 46 M RSS (1.4 GB VSZ) Started: Fri Jul 29 12:08:28 2016 - 01:14 ago State : Running, pid: 16020 Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 46 M RSS (1.4 GB VSZ) Started: Fri Jul 29 12:08:28 2016 - 01:16 ago State : Sleeping, pid: 16020 Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 46 M RSS (1.4 GB VSZ) Started: Fri Jul 29 12:08:28 2016 - 01:18 ago State : Sleeping, pid: 16020 Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 46 M RSS (1.4 GB VSZ) Started: Fri Jul 29 12:08:28 2016 - 01:20 ago State : Sleeping, pid: 16020 Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 46 M RSS (1.4 GB VSZ) Started: Fri Jul 29 12:08:28 2016 - 01:22 ago State : Sleeping, pid: 16020 Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 46 M RSS (1.4 GB VSZ) Started: Fri Jul 29 12:08:28 2016 - 01:24 ago State : Sleeping, pid: 16020 ^C Exiting on user cancel. #
I checked the process and saw the following information:
# ps aux | grep yum root 16020 28.4 2.3 1455028 79512 ? SN 12:08 1:16 /usr/bin/python /usr/share/PackageKit/helpers/yum/yumBackend.py refresh-cache yes root 16354 0.0 0.0 112652 952 pts/0 S+ 12:12 0:00 grep --color=auto yum #
[ More Info ]