禁止packagekit服务

2023-05-05 15:28:22 +0800 CST 1 min read views: 74

/usr/bin/python /usr/share/PackageKit/helpers/yum/yumBackend.py get-updates none经常占用了yum

Loaded plugins: fastestmirror, langpacks
Existing lock /var/run/yum.pid: another copy is running as pid 4042.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  39 M RSS (799 MB VSZ)
    Started: Mon Jul 25 23:54:37 2022 - 00:28 ago
    State  : Sleeping, pid: 4042
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  39 M RSS (799 MB VSZ)
    Started: Mon Jul 25 23:54:37 2022 - 00:30 ago
    State  : Sleeping, pid: 4042
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  39 M RSS (799 MB VSZ)
    Started: Mon Jul 25 23:54:37 2022 - 00:32 ago
    State  : Sleeping, pid: 4042

禁止它

sudo systemctl stop packagekit 
sudo systemctl mask packagekit