# yum -y install fping

Loaded plugins: fastestmirror,refresh-packagekit, security

Existing lock /var/run/yum.pid: anothercopy is running as pid 3009.

Another app is currently holding the yumlock; waiting for it to exit...

  Theother application is: PackageKit

   Memory :  51 M RSS (357 MB VSZ)

   Started: Tue Apr 12 06:29:30 2016 - 2:47:38 ago

   State  : Sleeping, pid: 3009

Another app is currently holding the yumlock; waiting for it to exit...

  Theother application is: PackageKit

   Memory :  51 M RSS (357 MB VSZ)

   Started: Tue Apr 12 06:29:30 2016 - 2:47:40 ago

   State  : Sleeping, pid: 3009


[root@ser Desktop]# yum -y install fping

Loaded plugins: fastestmirror,refresh-packagekit, security

Existing lock /var/run/yum.pid: anothercopy is running as pid 3009.

Another app is currently holding the yumlock; waiting for it to exit...

Another app is currently holding the yumlock; waiting for it to exit...

Another app is currently holding the yumlock; waiting for it to exit...

......


解决办法:

  # rm -rf /var/run/yum.pid 来强行解除锁定即可