Created
April 9, 2013 18:31
-
-
Save losinggeneration/5348140 to your computer and use it in GitHub Desktop.
A naive script to remove old kernels from Debian
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
find /boot -type f -mtime +90 -and -name "vmlinuz*" | while read i; do dpkg -S $i; done | cut -d":" -f1 | xargs dpkg -r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment