script for removing old kernels for debian-based systems added
This commit is contained in:
parent
7565f5bc07
commit
8ee1102711
1 changed files with 3 additions and 0 deletions
3
tools/remove_old_kernels
Executable file
3
tools/remove_old_kernels
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
sudo apt-get remove $(dpkg -l|egrep '^ii linux-(im|he)'|awk '{print $2}'|grep -v `uname -r`)
|
||||||
|
|
Loading…
Reference in a new issue