{"id":2432,"date":"2021-06-28T15:52:55","date_gmt":"2021-06-28T13:52:55","guid":{"rendered":"https:\/\/digitalia.culturanuova.net\/blog\/?p=2432"},"modified":"2021-06-28T15:53:56","modified_gmt":"2021-06-28T13:53:56","slug":"linux-remove-old-kernels","status":"publish","type":"post","link":"https:\/\/digitalia.culturanuova.net\/blog\/?p=2432","title":{"rendered":"linux remove old kernels"},"content":{"rendered":"\n<p>Recently Ubuntu-based linux SO doesn&#8217;t remove automatically old kernels, with the command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get autoremove --purge<\/code><\/pre>\n\n\n\n<p>This because kernels, even automatically installed, are considered manually installed, and so they are not automatically removed.<\/p>\n\n\n\n<p>To solve this, you should do beforehand this command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-mark auto $(apt-mark showmanual | grep -E \"^linux-(&#91;&#91;:alpha:]]+-)+&#91;&#91;:digit:].]+-&#91;^-]+(|-.+)$\")<\/code><\/pre>\n\n\n\n<p>With this command you say that all kernels are automatically installed, and therefore the previuous command (sudo apt-get autoremove &#8211;purge) will work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently Ubuntu-based linux SO doesn&#8217;t remove automatically old kernels, with the command This because kernels, even automatically installed, are considered manually installed, and so they are not automatically removed. To solve this, you should do beforehand this command With this command you say that all kernels are automatically installed, and therefore the previuous command (sudo &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/digitalia.culturanuova.net\/blog\/?p=2432\" class=\"more-link\">Leggi tutto<span class=\"screen-reader-text\"> &#8220;linux remove old kernels&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[647,573],"tags":[],"class_list":["post-2432","post","type-post","status-publish","format-standard","hentry","category-linux","category-sistema-operativo"],"_links":{"self":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2432"}],"version-history":[{"count":3,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2432\/revisions"}],"predecessor-version":[{"id":2435,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2432\/revisions\/2435"}],"wp:attachment":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}