Files
notes/divers/linux_remove_old_kernel_01.txt

6 lines
256 B
Plaintext
Raw Permalink Normal View History

2026-03-12 22:01:38 +01:00
# remove old kernel from /boot
# https://community.fortinet.com/t5/FortiSOAR-Knowledge-Base/Technical-Tip-Clean-up-boot-in-CentOS-RHEL-or-Rocky-Linux-8-and/ta-p/257565
uname -sr
rpm -q kernel
dnf remove --oldinstallonly --setopt installonly_limit=2 kernel