From 8ee11027113d6df540de37e806ecb89e831b64ef Mon Sep 17 00:00:00 2001 From: Cyryl Plotnicki-Chudyk Date: Sat, 28 Feb 2015 19:27:23 +0100 Subject: [PATCH] script for removing old kernels for debian-based systems added --- tools/remove_old_kernels | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 tools/remove_old_kernels diff --git a/tools/remove_old_kernels b/tools/remove_old_kernels new file mode 100755 index 00000000..5066c9a8 --- /dev/null +++ b/tools/remove_old_kernels @@ -0,0 +1,3 @@ +#!/bin/bash +sudo apt-get remove $(dpkg -l|egrep '^ii linux-(im|he)'|awk '{print $2}'|grep -v `uname -r`) +