Debian Stretch升级当前最新稳定版内核
<h3 id="why-update-kernel-">Why update kernel ?</h3><p>Update the kernel to new version fixed some newer hardware has no driver software, For me,My earphone has current noice.Someone tell me that is low version kernel trouble. So I search for some article and summary useful things , then I wrote this blog.</p>
<h3 id="update-linux-kernel-cookbook">Update Linux Kernel Cookbook</h3>
<p>Before installing a newer kernel, it’s important that we upgrade installed packages to their newer versions in the backports-repo in order to be sure that dependencies will remain unbroken.</p>
<pre><code class="language-bash">$ sudo apt-get -t stretch-backports upgrade
</code></pre>
<p>After the upgrade, choose a kernel from the list and install it with apt.</p>
<pre><code class="language-bash">$ sudo apt-cache search linux-image
</code></pre>
<p>Most of the installations would want the kernel without suffix. The rt-suffix stands for realtime and is mostly interesting for embedded projects or machines that will drive industrial hardware. dbg stands for debugging.</p>
<p>Here we chose linux-image-4.19.0-0.bpo.5-amd64 and linux-headers-4.19.0-0.bpo.5-amd64, the newest after 2019-05-18</p>
<pre><code class="language-bash">$ sudo apt-get -t stretch-backports install linux-image-4.19.0-0.bpo.5-amd64 linux-headers-4.19.0-0.bpo.5-amd64
</code></pre>
<p>After the installation, reboot your system and select the newly installed kernel from the selection displayed in GRUB. Debian selects the new kernel by default.</p>
<h3 id="uninstall-linux-kernel-on-debain">Uninstall Linux Kernel on Debain</h3>
<p>To check which kernels are currently installed:</p>
<pre><code class="language-bash">$ dpkg --get-selections|grep linux-image
linux-image-4.19.0-0.bpo.5-amd64 install
linux-image-4.9.0-9-amd64 install
linux-image-amd64 install
</code></pre>
<p>Uninstall the old one:</p>
<pre><code class="language-bash">$ sudo apt-get remove linux-image-4.9.0-9-amd64
</code></pre>
<p>That should be all it takes in order to install a recent kernel and cleanup older kernels on a Debian system. Not so difficult as you thought probably 😃</p>
<blockquote>
<p>Reference:<br>
http://jensd.be/818/linux/install-a-newer-kernel-in-debian-9-stretch-stable<br>
https://kantor.vivaldi.net/?p=92</p>
</blockquote><br><br>
来源:https://www.cnblogs.com/hellxz/p/11003779.html
頁:
[1]