# 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