Upgrade to 41, "dnf remove --oldinstallonly" doesn't work in dnf5

Before upgrade to 41, i use “dnf remove --oldinstallonly” to remove old kernel.
Now it doesn’t work. argument “–oldinstallonly” is not in “dnf remove”.
“–oldinstallonly” is replaced by what? I want to remove oldkernel simply.

It’s not implemented yet,

2 Likes

Here’s a workaround for now:

sudo dnf remove $(dnf rq --installonly --latest-limit=-1)
4 Likes