snipt

Ctrl+h for KB shortcuts

Text only

Removing Old Unused Kernels - Ubuntu 12.04LTS

1
2
3
4
5
6
7
1. List installed kernels

dpkg -l | grep linux-image-

2. Uninstall them - the numbers in between the curly braces are a range to do multiples.

apt-get autoremove linux-image-3.5.0-{42..44}-generic
https://snippets.siftie.com/embed/66af55f09e5fe3a6915789515fbc658c/
/raw/66af55f09e5fe3a6915789515fbc658c/
66af55f09e5fe3a6915789515fbc658c
text
Text only
9
2019-02-19T05:22:42
True
False
False
/api/public/snipt/120525/
removing-old-unused-kernels-ubuntu-1204lts
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>1. List installed kernels </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>dpkg -l | grep linux-image- </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a>2. Uninstall them - the numbers in between the curly braces are a range to do multiples. </span><span id="L-6"><a name="L-6"></a> </span><span id="L-7"><a name="L-7"></a>apt-get autoremove linux-image-3.5.0-{42..44}-generic </span></pre></div> </td></tr></table>