This command purges the unused linux headers, images and modules:<br><br>dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge<br>
<br>Found it on <a href="http://www.commandlinefu.com/commands/view/2456/purge-installed-but-unused-linux-headers-image-or-modules">http://www.commandlinefu.com/commands/view/2456/purge-installed-but-unused-linux-headers-image-or-modules</a> and works :)<br>
<br>Andrew<br><br><br><div class="gmail_quote">On Fri, Jan 8, 2010 at 19:05, Faizan Kazi <span dir="ltr"><<a href="mailto:faizan.s.kazi@faizan-kazi.com">faizan.s.kazi@faizan-kazi.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr">yup, sorry the computer janitor doesn't do that. but it'd be kinda cool if it did right?? :)<br>if you really wanna do that you've gotta find entries beginning with "linux-image-" and remove them in synaptic package manager... MAKE SURE to keep atleast one installed. I have NO idea what'd happen if you tried to remove all of them.<br>


<br>you can also do a "sudo apt-get remove linux-image-SOMETHING<br>use the Tab key auto completion to help you out there :)<br><br>~fez<br></div>
<br>--<br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
<br></blockquote></div><br>