美文网首页
How to disable PackageKit on Cen

How to disable PackageKit on Cen

作者: 我来解锋镝 | 来源:发表于2019-02-26 21:34 被阅读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

    相关文章

      网友评论

          本文标题:How to disable PackageKit on Cen

          本文链接:https://www.haomeiwen.com/subject/wgazyqtx.html