This is an automated archive made by the Lemmit Bot.

The original was posted on /r/fedora by /u/Booty_Bumping on 2024-11-14 08:33:37+00:00.


The original version of remove-retired-packages had a bug that caused it to silently fail and not remove any packages when used with DNF5. This is important because Fedora 41 has had some important deprecations, such as the removal of Python 2, and you wouldn’t want to accidentally use packages that won’t receive security updates. The bug has now been fixed in fedora-upgrade 41.2.

To do this:

sudo dnf upgrade --refresh
sudo dnf install remove-retired-packages
sudo remove-retired-packages

As usual, if you updated across multiple versions, make sure to specify the version you updated from:

sudo remove-retired-packages 39

I’m not sure if the original bug also applies to graphical update methods, but it’s safe to run it no matter what you originally did. So give it a shot and drop a comment with your experiences.

Edit: By the way, No matches were found for the following plugin name patterns while disabling libdnf plugins: local is normal and not an issue, as long as it still detects packages to remove. Just a newly added warning that isn’t being suppressed by the script.