Skip to content

Instantly share code, notes, and snippets.

View wildtruc's full-sized avatar
🤒
out.

Wild Truc wildtruc

🤒
out.
View GitHub Profile
@wildtruc
wildtruc / kernel-cleaner.sh
Last active February 6, 2024 12:35
Script to clean old /usr/lib/modules directories in Fedora Work Station.
#! /bin/bash
## ONLY DEDICATED TO FEDORA WORK STATION.
## For an unknown reason as far as I know, Fedora kernels update doesn't
## remove the very old /lib/modules dir from system and then, cumulate
## numbers of modules kernel folders.
## This very small script install it self as a boot service and check
## if the the kernels in /boot directory are the only present in /lib/modules,
## then, clean if needed.
##