Packagekit cache not clearing, duplicate '44' repos

Hi, I’ve got a few gigs of stuff in /var/cache/PackageKit that I just can’t seem to shift. I’ve tried pkgcli refresh -c -1 and pkcon refresh force -c -1 and it has no effect on them.

Software centre doesn’t say it has anything needing updating, let alone downloaded. Its mostly in updates-44-x86_64 and fedora-44-x86_64 but also in a few other repos that I’ve added at some point. It seems that I’ve got most of my repos duplicated with -44 in the name which all have datetimes going back to the 12th (see below, failed upgrade).

I’m thinking this has something to do with a bad upgrade from 43 to 44 earlier this week that left me with a system that wouldnt boot into GNOME, I ended up having to do a dnf distro-sync specifying 44 which gave me gnome back but running an fc43 kernel… I fixed that as well but I’m wondering if somehow this cache issue is related to that event.

If it is, is it safe to just delete those dirs directly or is there something else I should run to clean it up? If not, any ideas what I can do to clear it out?

/var/cache/PackageKit/44/metadata

Size Date Modified  Name
 28k 12/08/26 14:28 rpmfusion-nonfree-steam-44-x86_64
 56k 12/08/26 14:28 rpmfusion-nonfree-nvidia-driver-44-x86_64
 15k 12/08/26 14:28 adoptium-temurin-java-repository-44-x86_64
1.6G 12/08/26 14:36 fedora-44-x86_64
197M 12/08/26 14:39 terra-44-x86_64
3.7G 12/08/26 14:39 updates-44-x86_64
907k 12/08/26 14:46 fedora-cisco-openh264-44-x86_64
6.2M 12/08/26 14:46 rpmfusion-free-44-x86_64
277k 12/08/26 14:46 rpmfusion-nonfree-44-x86_64
 21M 12/08/26 14:46 rpmfusion-free-updates-44-x86_64
8.5M 12/08/26 14:46 rpmfusion-nonfree-updates-44-x86_64
 29k 16/08/26 17:30 adoptium-temurin-java-repository-033cfe84a856c2a0
 67M 16/08/26 17:30 fedora-cff72538bc9825a4
 13k 16/08/26 17:30 fedora-cisco-openh264-d770e872c130a03f
391k 16/08/26 17:30 rpmfusion-free-5d98f8cc0b647275
202k 16/08/26 17:30 rpmfusion-free-updates-880b8bb66393fb1c
242k 16/08/26 17:30 rpmfusion-nonfree-c89ee2f7518d5de2
 92k 16/08/26 17:30 rpmfusion-nonfree-nvidia-driver-6358d7a81a586962
 48k 16/08/26 17:30 rpmfusion-nonfree-steam-da7688610e614f89
105k 16/08/26 17:30 rpmfusion-nonfree-updates-e28ad54a83372d6b
6.7M 16/08/26 17:30 terra-7cd12bafb77e2892
 38M 16/08/26 17:30 updates-3cc07c89a20302f2

You should be able to remove, and then regenerate with pkcon.

Not sure I understand. I have to admit I didn’t know about pkcon but none of these duplicate repos even show up if I just look for updates:

> pkcon repo-list | rg updates

 Disabled   updates-testing           Fedora 44 - x86_64 - Test Updates
 Enabled    updates                   Fedora 44 - x86_64 - Updates
 Disabled   updates-testing-debuginfo Fedora 44 - x86_64 - Test Updates Debug
 Disabled   updates-testing-source    Fedora 44 - Test Updates Source
 Disabled   updates-debuginfo         Fedora 44 - x86_64 - Updates - Debug
 Disabled   updates-source            Fedora 44 - Updates Source

vs my cache:

3.7G 12/08/26 14:39 updates-44-x86_64
38M 16/08/26 17:30 updates-3cc07c89a20302f2

So I’m not exactly sure what I’m meant to be removing here?

You should be ok to do
sudo rm -rf /var/cache/PackageKit/*

You can regenerate the repos with
pkcon refresh force

Sorry about that.

Aah ok, got you. The first bit I wasn’t sure about if it was entirely safe to just remove them directly from the filesystem or if it needed to be via a tool. Thank you.