PackageKit es el actualizador de software gráfico en las distribuciones de Linux basadas en RedHat. Las publicaciones describen los pasos necesarios para habilitar o deshabilitar las actualizaciones automáticas a través del actualizador de PackageKit.
Deshabilitar PackageKit
1. Verifique el estado del servicio PackageKit.
# systemctl status packagekit ● packagekit.service - PackageKit Daemon Loaded: loaded (/usr/lib/systemd/system/packagekit.service; static; vendor preset: disabled) Active: active (running) since Tue 2018-03-27 15:41:45 UTC; 1s ago Main PID: 2334 (packagekitd) CGroup: /system.slice/packagekit.service └─2334 /usr/libexec/packagekitd Mar 27 15:41:45 geek.mylabserver.com systemd[1]: Starting PackageKit Daemon... Mar 27 15:41:45 geek.mylabserver.com PackageKit[2334]: daemon start Mar 27 15:41:45 geek.mylabserver.com systemd[1]: Started PackageKit Daemon.
2. Para deshabilitar la actualización automática a través de PackageKit, debemos detener el “packagekit ” servicio y desactívelo permanentemente.
# systemctl stop packagekit # systemctl mask packagekit Created symlink from /etc/systemd/system/packagekit.service to /dev/null.
3. Para eliminar completamente el actualizador de software PackageKit, use el siguiente comando.
# yum remove PackageKit* Dependencies Resolved ============================================================================================================================================================== Package Arch Version Repository Size ============================================================================================================================================================== Removing: PackageKit x86_64 1.1.5-1.el7.centos @base 2.6 M PackageKit-glib x86_64 1.1.5-1.el7.centos @base 480 k PackageKit-yum x86_64 1.1.5-1.el7.centos @base 301 k Removing for dependencies: cockpit-packagekit x86_64 160-1.el7.centos @extras 175 k gnome-packagekit x86_64 3.22.1-2.el7 @base 0.0 gnome-packagekit-common x86_64 3.22.1-2.el7 @base 6.3 M gnome-packagekit-installer x86_64 3.22.1-2.el7 @base 198 k gnome-packagekit-updater x86_64 3.22.1-2.el7 @base 194 k Transaction Summary ============================================================================================================================================================== Remove 3 Packages (+5 Dependent packages) Installed size: 10 M Is this ok [y/N]:
Habilitación de PackageKit
1. Si desea habilitar el actualizador de PackageKit, primero reinstale los paquetes que eliminó mientras lo deshabilitaba.
# yum install gnome-packagekit PackageKit-yum Dependencies Resolved =============================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================== Installing: PackageKit-yum x86_64 1.1.5-1.el7.centos base 75 k gnome-packagekit x86_64 3.22.1-2.el7 base 7.4 k Installing for dependencies: PackageKit x86_64 1.1.5-1.el7.centos base 583 k PackageKit-glib x86_64 1.1.5-1.el7.centos base 127 k gnome-packagekit-common x86_64 3.22.1-2.el7 base 1.1 M gnome-packagekit-installer x86_64 3.22.1-2.el7 base 78 k gnome-packagekit-updater x86_64 3.22.1-2.el7 base 74 k Transaction Summary =============================================================================================================================================================== Install 2 Packages (+5 Dependent packages) Total download size: 2.0 M Installed size: 10 M Is this ok [y/d/N]: y
2. Primero desenmascare el servicio del kit de paquetes antes de iniciarlo.
# systemctl unmask packagekit Removed symlink /etc/systemd/system/packagekit.service. # systemctl start packagekit
3. Verificar el estado del servicio.
# systemctl status packagekit ● packagekit.service - PackageKit Daemon Loaded: loaded (/usr/lib/systemd/system/packagekit.service; static; vendor preset: disabled) Active: active (running) since Tue 2018-03-27 15:47:26 UTC; 6s ago Main PID: 2522 (packagekitd) CGroup: /system.slice/packagekit.service └─2522 /usr/libexec/packagekitd Mar 27 15:47:26 geek.mylabserver.com systemd[1]: Starting PackageKit Daemon... Mar 27 15:47:26 geek.mylabserver.com PackageKit[2522]: daemon start Mar 27 15:47:26 geek.mylabserver.com systemd[1]: Started PackageKit Daemon.
4. Habilite el servicio del kit de paquetes para que se inicie en el arranque con el siguiente comando.
# systemctl enable packagekitEl comando Yum falla con "Otra aplicación actualmente tiene el bloqueo yum" en CentOS/RHEL 7