User Tools

Site Tools


how-to:single_command-line_to_remove_old_kernels

Ubuntu:

for i in `dpkg -l | tail -n +6 | grep -E 'linux-image-[0-9]+' | grep -Fv $(uname -r) | awk '{print $2}'`; do sudo apt-get remove --purge --yes $i; done;
how-to/single_command-line_to_remove_old_kernels.txt · Last modified: 2016/09/05 10:54 by curry_searle