{"id":144,"date":"2011-08-17T12:33:11","date_gmt":"2011-08-17T10:33:11","guid":{"rendered":"http:\/\/www.idoru.be\/notes\/?p=144"},"modified":"2011-08-17T12:34:28","modified_gmt":"2011-08-17T10:34:28","slug":"cleaning-old-kernels-in-ubuntu","status":"publish","type":"post","link":"http:\/\/www.idoru.be\/notes\/cleaning-old-kernels-in-ubuntu\/","title":{"rendered":"Cleaning old kernels in Ubuntu"},"content":{"rendered":"<p>The safe way:<\/p>\n<p>sudo aptitude -F &#8216;%p&#8217; search linux-{image,headers,restricted}-2.6~i | grep -v `uname -r | sed -r &#8216;s\/-[a-z0-9A-Z]+$\/\/&#8217;<\/p>\n<p>or, if you&#8217;re feeling lucky:<br \/>\nsudo aptitude -F &#8216;%p&#8217; search linux-{image,headers,restricted}-2.6~i | grep -v `uname -r | sed -r &#8216;s\/-[a-z0-9A-Z]+$\/\/&#8217;` | xargs sudo aptitude purge -y<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The safe way: sudo aptitude -F &#8216;%p&#8217; search linux-{image,headers,restricted}-2.6~i | grep -v `uname -r | sed -r &#8216;s\/-[a-z0-9A-Z]+$\/\/&#8217; or, if you&#8217;re feeling lucky: sudo aptitude -F &#8216;%p&#8217; search linux-{image,headers,restricted}-2.6~i | grep -v `uname -r | sed -r &#8216;s\/-[a-z0-9A-Z]+$\/\/&#8217;` | xargs sudo aptitude purge -y<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-144","post","type-post","status-publish","format-standard","hentry","category-howto"],"_links":{"self":[{"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/posts\/144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/comments?post=144"}],"version-history":[{"count":4,"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/posts\/144\/revisions"}],"predecessor-version":[{"id":148,"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/posts\/144\/revisions\/148"}],"wp:attachment":[{"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/media?parent=144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/categories?post=144"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.idoru.be\/notes\/wp-json\/wp\/v2\/tags?post=144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}