<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=1778&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Question on kernel upgrades]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=1778</link>
		<description><![CDATA[The most recent posts in Question on kernel upgrades.]]></description>
		<lastBuildDate>Mon, 11 Jun 2018 14:09:48 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Question on kernel upgrades]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=9911#p9911</link>
			<description><![CDATA[<p>Thanks! Yea that&#039;s what I thought. In our case these will always be headless servers in customer environments where X11Forwarding won&#039;t be an option. So the only means of cleaning up (which appears to only involve the unused linux-image-* packages in this case) would be with a careful apt-get purge.</p><p>Thanks for the replies. I was clearly misunderstanding dist-upgrade quite a bit.</p><p>Tom</p>]]></description>
			<author><![CDATA[dummy@example.com (tlathm)]]></author>
			<pubDate>Mon, 11 Jun 2018 14:09:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=9911#p9911</guid>
		</item>
		<item>
			<title><![CDATA[Re: Question on kernel upgrades]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=9856#p9856</link>
			<description><![CDATA[<p>apt-get dist-upgrade installs the latest kernel from the repo, but it never removes an old one. It also reconfigures the GRUB to point to the new kernel (grub-update).<br />When you do that repeatedly, old kernels do accumulate in the /boot... directory; you can remove them using synaptic or apt-get remove (or purge).<br />There may be older kernel images, (and possibly kernel firmware and kernel header files) to remove. (linux-image-xxx, linux-header-xxx, etc). Just be precise when specifying the exact name (includes the version nomination) to not accidentally render your system unbootable. Synaptic helps you best, even a headless server can be managed that way (1. ssh -X -l adminxy;2. password;3. synaptic &amp;). Just make sure your workstation is an X-server (Linux, Unix).<br />That is true for most of the .deb-based distros.</p>]]></description>
			<author><![CDATA[dummy@example.com (Andre4freedom)]]></author>
			<pubDate>Sat, 09 Jun 2018 15:28:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=9856#p9856</guid>
		</item>
		<item>
			<title><![CDATA[Re: Question on kernel upgrades]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=9852#p9852</link>
			<description><![CDATA[<p>I was a bit confused as to what dist-upgrade does and was under the impression it did much more major updating than it does. I just tried that on a copy of the same VM I updated as per my last post. It did in fact install the updated kernel (related to the installed linux-image-amd64 meta package). Note however that it didn&#039;t automatically uninstall the old one as you described (and frankly I wouldn&#039;t want it to):</p><div class="codebox"><pre><code>dpkg -l | grep linux-image
ii  linux-image-3.16.0-5-amd64      3.16.51-3+deb8u1                   amd64        Linux 3.16 for 64-bit PCs
ii  linux-image-3.16.0-6-amd64      3.16.56-1+deb8u1                   amd64        Linux 3.16 for 64-bit PCs
ii  linux-image-amd64               3.16+63+deb8u2                     amd64        Linux for 64-bit PCs (meta-package)</code></pre></div><p>I&#039;m not using backports or the like. I&#039;m assuming that&#039;s why it just upgraded to a newer 3.16 kernel?</p><p>Thanks! I was somewhat mistaken as to what dist-upgrade does.</p><p>Tom</p>]]></description>
			<author><![CDATA[dummy@example.com (tlathm)]]></author>
			<pubDate>Sat, 09 Jun 2018 14:02:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=9852#p9852</guid>
		</item>
		<item>
			<title><![CDATA[Re: Question on kernel upgrades]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=9838#p9838</link>
			<description><![CDATA[<p>Normally you should use <span class="bbc">apt-get dist-upgrade</span>. That would have upgraded to the newer kernel version automatically and of course remove the older one. <br /><span class="bbc">apt-get upgrade</span> is not doing that. It never removes older packages. In this case I would say it is save to do so because it is a security update to an already existing package, here the kernel 3.16. And that is why you probably won&#039;t see the older kernel in Grub. Because it is still in the same family or meta package that is called <span class="bbc">linux-image-amd64</span>. </p><p>Now if I install a kernel from backports it would be added as a new option to the Grub menu and it would install a <em>new</em> package instead of only upgrading the existing one. For Jessie that is kernel image 4.9. </p><p>I hope I explained it well. It can be confusing.&#160; </p><p>The system will take care of Grub. You do not have to do anything.</p>]]></description>
			<author><![CDATA[dummy@example.com (ivanovnegro)]]></author>
			<pubDate>Fri, 08 Jun 2018 22:56:42 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=9838#p9838</guid>
		</item>
		<item>
			<title><![CDATA[Re: Question on kernel upgrades]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=9830#p9830</link>
			<description><![CDATA[<p>I&#039;m reviving an old topic here to clarify something regarding these kernel upgrades (within the same major version). Yesterday I upgraded my kernel on a Jessie install and here&#039;s what I ran into. I just wanted to make sure this is expected:</p><p>There was clearly a new kernel available for the linux-image-amd64 meta package. When I tried to get this via &quot;apt-get upgrade&quot; here&#039;s what I got:</p><div class="codebox"><pre><code>apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  linux-image-amd64
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.</code></pre></div><p>What I finally figured out was that I could get the new kernel using this instead:</p><div class="codebox"><pre><code>apt-get install --only-upgrade linux-image-amd64
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  linux-image-3.16.0-6-amd64
Suggested packages:
  linux-doc-3.16 debian-kernel-handbook
The following NEW packages will be installed:
  linux-image-3.16.0-6-amd64
The following packages will be upgraded:
  linux-image-amd64
1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 34.5 MB of archives.
After this operation, 168 MB of additional disk space will be used.
Do you want to continue? [Y/n] </code></pre></div><p>That worked and appears to have run update-grub as well. When I rebooted I was running that new version. Apparently at that point if I wanted to remove the unused kernel, I could then do:</p><div class="codebox"><pre><code>apt-get purge linux-image-3.16.0-5-amd64
update-grub</code></pre></div><p>I&#039;m assuming the &quot;apt-get upgrade&quot; may not work simply because upgrade implies installing the new version and removing the existing(?) which is obviously unsafe for kernels. Is that correct?</p><p>Thanks!<br />Tom</p>]]></description>
			<author><![CDATA[dummy@example.com (tlathm)]]></author>
			<pubDate>Fri, 08 Jun 2018 14:57:15 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=9830#p9830</guid>
		</item>
		<item>
			<title><![CDATA[Re: Question on kernel upgrades]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=6717#p6717</link>
			<description><![CDATA[<div class="quotebox"><cite>sgage wrote:</cite><blockquote><div><p>I agree - old grub was so much more understandable...</p></div></blockquote></div><p>Totally. Under Gentoo I moved to Syslinux when I saw how grub 2 worked. Not a fan.</p>]]></description>
			<author><![CDATA[dummy@example.com (tlathm)]]></author>
			<pubDate>Thu, 14 Dec 2017 14:47:53 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=6717#p6717</guid>
		</item>
		<item>
			<title><![CDATA[Re: Question on kernel upgrades]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=6716#p6716</link>
			<description><![CDATA[<div class="quotebox"><cite>golinux wrote:</cite><blockquote><div><p>My jessie does not save older kernels - at least they&#039;re not listed at boot.&#160; I would like to know what grub file needs to be tweaked to tell grub to save 2 kernels.&#160; Used to be easy to do that with the old grub.&#160; &#160;This is not progress . . .</p></div></blockquote></div><p>I think I spoke too soon. I&#039;m running ascii, upgraded from jessie. The upgrade left jessie&#039;s 3.16 kernel when it upgraded to 4.9, and I can boot either one from grub. Routine kernel updates don&#039;t work that way, I guess.</p><p>I agree - old grub was so much more understandable...</p>]]></description>
			<author><![CDATA[dummy@example.com (sgage)]]></author>
			<pubDate>Thu, 14 Dec 2017 12:02:11 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=6716#p6716</guid>
		</item>
		<item>
			<title><![CDATA[Re: Question on kernel upgrades]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=6715#p6715</link>
			<description><![CDATA[<p>#find how many linux images are installed on the system.</p><div class="codebox"><pre><code>dpkg -l | grep linux-image</code></pre></div><p>I use it for many years 3.16 series. Very pleased and I say to go up to end of LTS with it.</p><div class="codebox"><pre><code>ii  linux-image-3.16.0-4-686-pae  3.16.51-2     i386    Linux 3.16 for modern PCs</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Nili)]]></author>
			<pubDate>Thu, 14 Dec 2017 10:07:03 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=6715#p6715</guid>
		</item>
		<item>
			<title><![CDATA[Re: Question on kernel upgrades]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=6708#p6708</link>
			<description><![CDATA[<p>My jessie does not save older kernels - at least they&#039;re not listed at boot.&#160; I would like to know what grub file needs to be tweaked to tell grub to save 2 kernels.&#160; Used to be easy to do that with the old grub.&#160; &#160;This is not progress . . .</p>]]></description>
			<author><![CDATA[dummy@example.com (golinux)]]></author>
			<pubDate>Wed, 13 Dec 2017 22:16:51 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=6708#p6708</guid>
		</item>
		<item>
			<title><![CDATA[Re: Question on kernel upgrades]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=6707#p6707</link>
			<description><![CDATA[<p>I believe it saves one older kernel - at least that&#039;s what it does for me. When a new kernel is installed, it will then save the current kernel and delete the previous saved kernel. So you always have one fallback.</p><p>- sgage</p><div class="quotebox"><cite>tlathm wrote:</cite><blockquote><div><p>That&#039;s what I figured. I don&#039;t have Synaptic as this is a headless server. Thanks!</p><p>Tom</p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (sgage)]]></author>
			<pubDate>Wed, 13 Dec 2017 20:43:22 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=6707#p6707</guid>
		</item>
		<item>
			<title><![CDATA[Re: Question on kernel upgrades]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=6706#p6706</link>
			<description><![CDATA[<p>That&#039;s what I figured. I don&#039;t have Synaptic as this is a headless server. Thanks!</p><p>Tom</p>]]></description>
			<author><![CDATA[dummy@example.com (tlathm)]]></author>
			<pubDate>Wed, 13 Dec 2017 20:14:46 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=6706#p6706</guid>
		</item>
		<item>
			<title><![CDATA[Re: Question on kernel upgrades]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=6695#p6695</link>
			<description><![CDATA[<div class="quotebox"><cite>tlathm wrote:</cite><blockquote><div><p>I have Jessie with the linux-image-amd64 meta package installed. Most of what I read about kernel upgrades seems to be around doing dist-upgrade. I&#039;m a little confused as far as ongoing kernel upgrades that might occur within the same major version.</p><p>If (and I assume there are) occasional kernel upgrades available for Jessie, do they just get installed via api-get update and apt-get upgrade? If so, does it leave the existing kernel installed etc. Also...and this is probably related...does it automatically run grub-update if I&#039;m using grub?</p><p>Thanks!<br />Tom</p></div></blockquote></div><p>Hi Tom, when using jessie (current stable) you will get occasional kernel upgrades within the same family (3.16 LTS).&#160; If installing through Synaptic you can just mark it as a regular upgrade, it will install the new kernel (removing the old one) and will run update-grub (at least it did last time I checked). In other words it works the same as other upgradeable packages within the same major version (i.e. jessie/Devuan 1.0).</p><p>I have done quite a few in the last year and they all went very smoothly, no issues at all.</p><p>I don&#039;t use apt-get, but looks like it should work the same unless there are changing dependencies with new version (can&#039;t see that happening with the kernel but possible I guess)? In which case you might need to use apt-get dist-upgrade.</p>]]></description>
			<author><![CDATA[dummy@example.com (greenjeans)]]></author>
			<pubDate>Tue, 12 Dec 2017 22:54:53 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=6695#p6695</guid>
		</item>
		<item>
			<title><![CDATA[Question on kernel upgrades]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=6687#p6687</link>
			<description><![CDATA[<p>I have Jessie with the linux-image-amd64 meta package installed. Most of what I read about kernel upgrades seems to be around doing dist-upgrade. I&#039;m a little confused as far as ongoing kernel upgrades that might occur within the same major version.</p><p>If (and I assume there are) occasional kernel upgrades available for Jessie, do they just get installed via api-get update and apt-get upgrade? If so, does it leave the existing kernel installed etc. Also...and this is probably related...does it automatically run grub-update if I&#039;m using grub?</p><p>Thanks!<br />Tom</p>]]></description>
			<author><![CDATA[dummy@example.com (tlathm)]]></author>
			<pubDate>Tue, 12 Dec 2017 16:48:16 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=6687#p6687</guid>
		</item>
	</channel>
</rss>
