Issue
How to remove outdated kernel on CloudLinux 8 and 9
Environment
- CloudLinux 8,9
Solution
For CloudLinux 8 use:
# yum remove --oldinstallonly
In case when a user-defined number of kernels should be retained (similar to the --count
functionality for package-cleanup
), the following can be used. In the example below, the intent is to retain the latest 3 install only packages:
# yum remove $(yum repoquery --installonly --latest-limit=-3 -q)
Comments
0 comments
Please sign in to leave a comment.