Translate

Image of Operating System Concepts
Image of Android Wireless Application Development
Image of Modern Operating Systems (3rd Edition)
Image of Beginning Google Maps API 3

Disable PackageKit Update Check after Yum

Ever get an error message like the following when you use yum to install an RPM package or a group of RPM packages, and then, within a minute or two, attempt to use yum to install another RPM package?

# yum groupinstall "Development Tools"
Loaded plugins: langpacks, presto, refresh-packagekit
Existing lock /var/run/yum.pid: another copy is running as pid 1651.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 114 M RSS (506 MB VSZ)
    Started: Wed Oct 26 15:11:42 2011 - 00:10 ago
    State  : Running, pid: 1651
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 111 M RSS (503 MB VSZ)
    Started: Wed Oct 26 15:11:42 2011 - 00:12 ago
    State  : Running, pid: 1651
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 111 M RSS (503 MB VSZ)
    Started: Wed Oct 26 15:11:42 2011 - 00:14 ago
    State  : Running, pid: 1651


This is because, by default, PackageKit checks for updates after yum exists.

A number of yum plugins are installed by default with the operating system. These include product-id and refresh-packagekit as well as some others. You can disable all yum plugins by editing /etc/yum.conf and setting plugins=0. However this is not advisable and it is better practice to individually disable yum plugins.

The refresh-packagekit plugin controls whether PackageKit checks for updates after yum exists. You can disable this plugin by either editing /etc/yum/pluginconf.d/refresh-packagetkit.conf and changing the value of enabled to 0, or you can invoke yum with the –disableplugin=refresh-packagekit command line option.

1 comment to Disable PackageKit Update Check after Yum