Do kernel updates require every version in between?
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
11
down vote
favorite
I am considering disabling auto-updates or pinning the kernel to a specific version. However I am concerned that when I later unpin the version, that all kernels in between the pinned version and the latest version will need to be downloaded and installed which would cause /root
to run out of disk space.
Does each kernel version need to be downloaded and installed or does apt-get
know to only fetch the latest kernel?
kernel updates
add a comment |Â
up vote
11
down vote
favorite
I am considering disabling auto-updates or pinning the kernel to a specific version. However I am concerned that when I later unpin the version, that all kernels in between the pinned version and the latest version will need to be downloaded and installed which would cause /root
to run out of disk space.
Does each kernel version need to be downloaded and installed or does apt-get
know to only fetch the latest kernel?
kernel updates
add a comment |Â
up vote
11
down vote
favorite
up vote
11
down vote
favorite
I am considering disabling auto-updates or pinning the kernel to a specific version. However I am concerned that when I later unpin the version, that all kernels in between the pinned version and the latest version will need to be downloaded and installed which would cause /root
to run out of disk space.
Does each kernel version need to be downloaded and installed or does apt-get
know to only fetch the latest kernel?
kernel updates
I am considering disabling auto-updates or pinning the kernel to a specific version. However I am concerned that when I later unpin the version, that all kernels in between the pinned version and the latest version will need to be downloaded and installed which would cause /root
to run out of disk space.
Does each kernel version need to be downloaded and installed or does apt-get
know to only fetch the latest kernel?
kernel updates
kernel updates
edited Mar 20 at 15:41
![](https://i.stack.imgur.com/lcww5.png?s=32&g=1)
![](https://i.stack.imgur.com/lcww5.png?s=32&g=1)
sudodus
20.2k32667
20.2k32667
asked Mar 20 at 15:29
styfle
1586
1586
add a comment |Â
add a comment |Â
3 Answers
3
active
oldest
votes
up vote
25
down vote
accepted
Ubuntu will only download and install the most recent kernel
I have an Ubuntu computer that stays turned off for months. When I turn it on and let it update itself, it only downloads the latests kernel, and skips the ones in between.
You may want to run
sudo apt autoremove
After each updating kernels so that /boot
has only two most recently installed kernels. This way, if the latest kernel misbehaves you can go back to the previously working kernel, and at the same time keep /boot
from getting clogged up with old kernels.
Hope this helps
Since which version doesautoremove
clean up kernels? It certainly didn't on Trusty, which requires manual removal.
â Chris H
Mar 21 at 9:26
1
@ChrisH: Last I checked,autoremove
keeps the current kernel and one previous (and the currently-booted kernel), so you can recover if the new one fails to boot. But it will remove kernels older than that. See/etc/apt/apt.conf.d/01autoremove-kernels
and/etc/kernel/postinst.d/apt-auto-removal
which generates that. (If you've done multiple updates that installed new kernels but never got around to booting them, doautoremove
after rebooting to get down to 2 kernels installed, instead of 3)
â Peter Cordes
Mar 21 at 12:31
add a comment |Â
up vote
8
down vote
Short answer: No
Longer answer: I have some Ubuntu flavour systems (Lubuntu and Xubuntu), that I run rather seldom. When I update & upgrade them, they will often skip several kernel versions, and there are no problems. I usually run the following commands, and receive the current kernel version (of the same kernel series),
sudo apt update
sudo apt full-upgrade
It is a good idea to run
sudo apt autoremove
after a new kernel is installed, so that /boot
has only two most recently installed kernels. You can select the previous kernel from the grub menu, if there are problems with the new kernel.
add a comment |Â
up vote
7
down vote
Pinning is usually used only when you have mixed repositories
See https://help.ubuntu.com/community/PinningHowto
I suggest you put the kernel on hold
How to prevent updating of a specific package?
Either way, once you reverse the hold or pinning, apt will only download and update the most recent kernel skipping any and all kernels between.
add a comment |Â
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
25
down vote
accepted
Ubuntu will only download and install the most recent kernel
I have an Ubuntu computer that stays turned off for months. When I turn it on and let it update itself, it only downloads the latests kernel, and skips the ones in between.
You may want to run
sudo apt autoremove
After each updating kernels so that /boot
has only two most recently installed kernels. This way, if the latest kernel misbehaves you can go back to the previously working kernel, and at the same time keep /boot
from getting clogged up with old kernels.
Hope this helps
Since which version doesautoremove
clean up kernels? It certainly didn't on Trusty, which requires manual removal.
â Chris H
Mar 21 at 9:26
1
@ChrisH: Last I checked,autoremove
keeps the current kernel and one previous (and the currently-booted kernel), so you can recover if the new one fails to boot. But it will remove kernels older than that. See/etc/apt/apt.conf.d/01autoremove-kernels
and/etc/kernel/postinst.d/apt-auto-removal
which generates that. (If you've done multiple updates that installed new kernels but never got around to booting them, doautoremove
after rebooting to get down to 2 kernels installed, instead of 3)
â Peter Cordes
Mar 21 at 12:31
add a comment |Â
up vote
25
down vote
accepted
Ubuntu will only download and install the most recent kernel
I have an Ubuntu computer that stays turned off for months. When I turn it on and let it update itself, it only downloads the latests kernel, and skips the ones in between.
You may want to run
sudo apt autoremove
After each updating kernels so that /boot
has only two most recently installed kernels. This way, if the latest kernel misbehaves you can go back to the previously working kernel, and at the same time keep /boot
from getting clogged up with old kernels.
Hope this helps
Since which version doesautoremove
clean up kernels? It certainly didn't on Trusty, which requires manual removal.
â Chris H
Mar 21 at 9:26
1
@ChrisH: Last I checked,autoremove
keeps the current kernel and one previous (and the currently-booted kernel), so you can recover if the new one fails to boot. But it will remove kernels older than that. See/etc/apt/apt.conf.d/01autoremove-kernels
and/etc/kernel/postinst.d/apt-auto-removal
which generates that. (If you've done multiple updates that installed new kernels but never got around to booting them, doautoremove
after rebooting to get down to 2 kernels installed, instead of 3)
â Peter Cordes
Mar 21 at 12:31
add a comment |Â
up vote
25
down vote
accepted
up vote
25
down vote
accepted
Ubuntu will only download and install the most recent kernel
I have an Ubuntu computer that stays turned off for months. When I turn it on and let it update itself, it only downloads the latests kernel, and skips the ones in between.
You may want to run
sudo apt autoremove
After each updating kernels so that /boot
has only two most recently installed kernels. This way, if the latest kernel misbehaves you can go back to the previously working kernel, and at the same time keep /boot
from getting clogged up with old kernels.
Hope this helps
Ubuntu will only download and install the most recent kernel
I have an Ubuntu computer that stays turned off for months. When I turn it on and let it update itself, it only downloads the latests kernel, and skips the ones in between.
You may want to run
sudo apt autoremove
After each updating kernels so that /boot
has only two most recently installed kernels. This way, if the latest kernel misbehaves you can go back to the previously working kernel, and at the same time keep /boot
from getting clogged up with old kernels.
Hope this helps
answered Mar 20 at 15:35
user68186
14.4k84461
14.4k84461
Since which version doesautoremove
clean up kernels? It certainly didn't on Trusty, which requires manual removal.
â Chris H
Mar 21 at 9:26
1
@ChrisH: Last I checked,autoremove
keeps the current kernel and one previous (and the currently-booted kernel), so you can recover if the new one fails to boot. But it will remove kernels older than that. See/etc/apt/apt.conf.d/01autoremove-kernels
and/etc/kernel/postinst.d/apt-auto-removal
which generates that. (If you've done multiple updates that installed new kernels but never got around to booting them, doautoremove
after rebooting to get down to 2 kernels installed, instead of 3)
â Peter Cordes
Mar 21 at 12:31
add a comment |Â
Since which version doesautoremove
clean up kernels? It certainly didn't on Trusty, which requires manual removal.
â Chris H
Mar 21 at 9:26
1
@ChrisH: Last I checked,autoremove
keeps the current kernel and one previous (and the currently-booted kernel), so you can recover if the new one fails to boot. But it will remove kernels older than that. See/etc/apt/apt.conf.d/01autoremove-kernels
and/etc/kernel/postinst.d/apt-auto-removal
which generates that. (If you've done multiple updates that installed new kernels but never got around to booting them, doautoremove
after rebooting to get down to 2 kernels installed, instead of 3)
â Peter Cordes
Mar 21 at 12:31
Since which version does
autoremove
clean up kernels? It certainly didn't on Trusty, which requires manual removal.â Chris H
Mar 21 at 9:26
Since which version does
autoremove
clean up kernels? It certainly didn't on Trusty, which requires manual removal.â Chris H
Mar 21 at 9:26
1
1
@ChrisH: Last I checked,
autoremove
keeps the current kernel and one previous (and the currently-booted kernel), so you can recover if the new one fails to boot. But it will remove kernels older than that. See /etc/apt/apt.conf.d/01autoremove-kernels
and /etc/kernel/postinst.d/apt-auto-removal
which generates that. (If you've done multiple updates that installed new kernels but never got around to booting them, do autoremove
after rebooting to get down to 2 kernels installed, instead of 3)â Peter Cordes
Mar 21 at 12:31
@ChrisH: Last I checked,
autoremove
keeps the current kernel and one previous (and the currently-booted kernel), so you can recover if the new one fails to boot. But it will remove kernels older than that. See /etc/apt/apt.conf.d/01autoremove-kernels
and /etc/kernel/postinst.d/apt-auto-removal
which generates that. (If you've done multiple updates that installed new kernels but never got around to booting them, do autoremove
after rebooting to get down to 2 kernels installed, instead of 3)â Peter Cordes
Mar 21 at 12:31
add a comment |Â
up vote
8
down vote
Short answer: No
Longer answer: I have some Ubuntu flavour systems (Lubuntu and Xubuntu), that I run rather seldom. When I update & upgrade them, they will often skip several kernel versions, and there are no problems. I usually run the following commands, and receive the current kernel version (of the same kernel series),
sudo apt update
sudo apt full-upgrade
It is a good idea to run
sudo apt autoremove
after a new kernel is installed, so that /boot
has only two most recently installed kernels. You can select the previous kernel from the grub menu, if there are problems with the new kernel.
add a comment |Â
up vote
8
down vote
Short answer: No
Longer answer: I have some Ubuntu flavour systems (Lubuntu and Xubuntu), that I run rather seldom. When I update & upgrade them, they will often skip several kernel versions, and there are no problems. I usually run the following commands, and receive the current kernel version (of the same kernel series),
sudo apt update
sudo apt full-upgrade
It is a good idea to run
sudo apt autoremove
after a new kernel is installed, so that /boot
has only two most recently installed kernels. You can select the previous kernel from the grub menu, if there are problems with the new kernel.
add a comment |Â
up vote
8
down vote
up vote
8
down vote
Short answer: No
Longer answer: I have some Ubuntu flavour systems (Lubuntu and Xubuntu), that I run rather seldom. When I update & upgrade them, they will often skip several kernel versions, and there are no problems. I usually run the following commands, and receive the current kernel version (of the same kernel series),
sudo apt update
sudo apt full-upgrade
It is a good idea to run
sudo apt autoremove
after a new kernel is installed, so that /boot
has only two most recently installed kernels. You can select the previous kernel from the grub menu, if there are problems with the new kernel.
Short answer: No
Longer answer: I have some Ubuntu flavour systems (Lubuntu and Xubuntu), that I run rather seldom. When I update & upgrade them, they will often skip several kernel versions, and there are no problems. I usually run the following commands, and receive the current kernel version (of the same kernel series),
sudo apt update
sudo apt full-upgrade
It is a good idea to run
sudo apt autoremove
after a new kernel is installed, so that /boot
has only two most recently installed kernels. You can select the previous kernel from the grub menu, if there are problems with the new kernel.
edited Mar 20 at 18:36
answered Mar 20 at 15:37
![](https://i.stack.imgur.com/lcww5.png?s=32&g=1)
![](https://i.stack.imgur.com/lcww5.png?s=32&g=1)
sudodus
20.2k32667
20.2k32667
add a comment |Â
add a comment |Â
up vote
7
down vote
Pinning is usually used only when you have mixed repositories
See https://help.ubuntu.com/community/PinningHowto
I suggest you put the kernel on hold
How to prevent updating of a specific package?
Either way, once you reverse the hold or pinning, apt will only download and update the most recent kernel skipping any and all kernels between.
add a comment |Â
up vote
7
down vote
Pinning is usually used only when you have mixed repositories
See https://help.ubuntu.com/community/PinningHowto
I suggest you put the kernel on hold
How to prevent updating of a specific package?
Either way, once you reverse the hold or pinning, apt will only download and update the most recent kernel skipping any and all kernels between.
add a comment |Â
up vote
7
down vote
up vote
7
down vote
Pinning is usually used only when you have mixed repositories
See https://help.ubuntu.com/community/PinningHowto
I suggest you put the kernel on hold
How to prevent updating of a specific package?
Either way, once you reverse the hold or pinning, apt will only download and update the most recent kernel skipping any and all kernels between.
Pinning is usually used only when you have mixed repositories
See https://help.ubuntu.com/community/PinningHowto
I suggest you put the kernel on hold
How to prevent updating of a specific package?
Either way, once you reverse the hold or pinning, apt will only download and update the most recent kernel skipping any and all kernels between.
answered Mar 20 at 15:36
![](https://i.stack.imgur.com/Hec4G.png?s=32&g=1)
![](https://i.stack.imgur.com/Hec4G.png?s=32&g=1)
Panther
75.1k10149256
75.1k10149256
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1017663%2fdo-kernel-updates-require-every-version-in-between%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password