Description | This article describes how to clean up the /boot directory in CentOS, RHEL or Rocky Linux 8 and up |
Scope | FortiSOAR with CentOS, RHEL, Rocky Linux 8+. |
Solution |
To free space in /boot while upgrading the FortiSOAR™ system running on Rocky Linux 8 or up, follow these steps:
1) Check the current kernel being used:
sudo uname -sr
2) List all kernels installed on the system:
sudo rpm -q kernel
3) Delete old kernels and only leave <X> number of kernels:
sudo dnf remove --oldinstallonly --setopt installonly_limit=<X> kernel
Note: <X> can be set to 1, 2, 3 or other numeric values. Carefully check the running kernel in step 2 and any other kernels used before running this command. Alternatively, use the following command to delete kernels one by one:
rpm -e <kernel_name>
Kernel names can be obtained through step 2. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.