Skip to main content
2 votes

Cleaning-up previous kernel RPMs after reboot

dnf config-manager setopt installonly_limit=2 Will set the limit of such packages, to take effect in the next transaction. Two is the minimum limit enforced here. Or, dnf remove $(dnf repoquery -q --...
John Mahowald's user avatar
2 votes

Cleaning-up previous kernel RPMs after reboot

Not 100% accurate but simple enough: rpm -qa | awk -F- -v r="$(uname -r)" '$1 == "kernel" && !index($0, r)'
Fravadona's user avatar
  • 1,601

Only top scored, non community-wiki answers of a minimum length are eligible