# Rocky 9.6 re-installed PackageKit without being asked

**URL:** https://forums.rockylinux.org/t/rocky-9-6-re-installed-packagekit-without-being-asked/18708
**Category:** Rocky Linux Help & Support
**Tags:** rocky-linux-9
**Created:** [June 8, 2025, 3:08pm UTC](https://forums.rockylinux.org/t/rocky-9-6-re-installed-packagekit-without-being-asked/18708 "2025-06-08T15:08:01Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![gerry666uk](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gerry666uk](https://forums.rockylinux.org/u/gerry666uk)
#### Post date: [June 8, 2025, 3:08pm UTC](https://forums.rockylinux.org/t/rocky-9-6-re-installed-packagekit-without-being-asked/18708/1 "2025-06-08T15:08:01Z")

</div>

On Rocky 9.5 I uninstalled PackageKit.

Rocky 9.6 has put it back!

How/When does RHEL/Rocky/DNF decide to install a package that was not installed on the previous version?

---

<div class="post-metadata">

### Author: ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)
#### Post date: [June 8, 2025, 3:12pm UTC](https://forums.rockylinux.org/t/rocky-9-6-re-installed-packagekit-without-being-asked/18708/2 "2025-06-08T15:12:21Z")

</div>

Logically, a new version for some package, which you had installed, has now explicit dependency that pulls in the other package (PackageKit).

Command like “dnf rm packagekit” should list the other packages that reguire the package that you are about to remove.

---

<div class="post-metadata">

### Author: ![label](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@label](https://forums.rockylinux.org/u/label)
#### Post date: [June 8, 2025, 4:08pm UTC](https://forums.rockylinux.org/t/rocky-9-6-re-installed-packagekit-without-being-asked/18708/3 "2025-06-08T16:08:38Z")

</div>

If a package is magically showing back up, it’s because it’s a weak dependency (usually a recommended package) of another.

These flat out require PackageKit.

```auto
[root@router ~]# dnf repoquery -q --whatrequires PackageKit
PackageKit-command-not-found-0:1.2.6-1.el9.aarch64
cockpit-packagekit-0:334.1-1.el9_6.noarch
plasma-discover-packagekit-0:5.27.11-1.el9.aarch64
plasma-pk-updates-1:0.3.2-13.el9.aarch64

```

These “recommend” PackageKit, meaning it’s a weak dep and if dnf finds PackageKit, it will attempt to install it.

```auto
[root@router ~]# dnf repoquery -q --whatrecommends PackageKit
PackageKit-Qt5-0:1.1.1-2.el9.aarch64
cockpit-system-0:334.1-1.el9_6.noarch
gnome-software-0:45.3-3.el9.aarch64

```

Either exclude the package in your repo files or use `--setopt=install_weak_deps=False` when running dnf.

---

<div class="post-metadata">

### Author: ![gerry666uk](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gerry666uk](https://forums.rockylinux.org/u/gerry666uk)
#### Post date: [June 8, 2025, 6:02pm UTC](https://forums.rockylinux.org/t/rocky-9-6-re-installed-packagekit-without-being-asked/18708/4 "2025-06-08T18:02:39Z")

</div>

Thanks for the updates.

Of all the packages listed above, the only one I have is ‘cockpit-system.noarch’. Maybe that the one causing the issue. I don’t even use cockpit.

But I also noticed I have

```auto
PackageKit-glib.x86_64            
PackageKit-gstreamer-plugin.x86_64
PackageKit-gtk3-module.x86_64

```

I have no idea what they are for; I don’t think they are dependencies, as there was no warning about needing to remove them…

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)
#### Post date: [August 7, 2025, 6:03pm UTC](https://forums.rockylinux.org/t/rocky-9-6-re-installed-packagekit-without-being-asked/18708/5 "2025-08-07T18:03:00Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
