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 --...
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)'
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
rpm × 1112yum × 298
centos × 288
rhel × 223
fedora × 136
package-management × 129
linux × 118
rpmbuild × 95
software-installation × 68
dependencies × 66
dnf × 62
rpm-spec × 61
packaging × 55
repository × 40
python × 25
compiling × 23
opensuse × 21
deb × 21
zypper × 21
bash × 20
java × 18
gpg × 17
debian × 16
upgrade × 16
suse × 14