~cyplo/dotfiles

ref: 1ca69547b9a678da7a89ac93b7822ac478a2ab7d dotfiles/tools/remove_old_kernels -rwxr-xr-x 177 bytes
1ca69547 — Cyryl Płotnicki update 5 months ago
                                                                                
1
2
3
4
#!/bin/bash
sudo apt-get remove -y $(dpkg -l|egrep '^ii  linux-(im|he)'|awk '{print $2}'|grep -v `uname -r`)
sudo apt-get install -y linux-image-generic
sudo apt-get autoremove