How to disable PackageKit on Cen

2019-02-26  本文已影响0人  我来解锋镝

方法

systemctl disable packagekit;systemctl disable packagekit

参考网站

http://ask.xmodulo.com/disable-packagekit-centos-fedora-rhel.html

https://unix.stackexchange.com/questions/196078/how-to-avoid-yum-lock-hassle

原因截图:

Disable PackageKit Temporarily

One way to get around PackageKit duringyumoperation is to use "--disableplugin" option withyumcommand.  This will temporarily disable PackageKit, and thus you can proceed without being interferred with by PackageKit.

$ sudo yum install --disableplugin=refresh-packagekit <package-name>

Disable PackageKit Permanently

If you want to turn off PackageKit permanently, you can do the following.

CentOS/RHEL 7, Fedora 20 or higher:

$ sudo systemctl disable packagekitd

This will disable PackageKit permanently on the next boot.

On CentOS/RHEL 6, Fedora 19 or earlier:

Open /etc/yum/pluginconf.d/refresh-packagekit.conf with a text editor, and change "enabled=1" to "enabled=0".

$ sudo vi /etc/yum/pluginconf.d/refresh-packagekit.conf

1 enabled=0

Remove PackageKit Altogether

A final approach is to simply remove PackageKit altogether.

$ sudo yum remove PackageKit

上一篇下一篇

猜你喜欢

热点阅读