Do kernel updates require every version in between?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
11
down vote

favorite
1












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?










share|improve this question



























    up vote
    11
    down vote

    favorite
    1












    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?










    share|improve this question

























      up vote
      11
      down vote

      favorite
      1









      up vote
      11
      down vote

      favorite
      1






      1





      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?










      share|improve this question















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 20 at 15:41









      sudodus

      20.2k32667




      20.2k32667










      asked Mar 20 at 15:29









      styfle

      1586




      1586




















          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






          share|improve this answer




















          • 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




            @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


















          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.






          share|improve this answer





























            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.






            share|improve this answer




















              Your Answer







              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "89"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              convertImagesToLinks: true,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













               

              draft saved


              draft discarded


















              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






























              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






              share|improve this answer




















              • 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




                @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















              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






              share|improve this answer




















              • 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




                @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













              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






              share|improve this answer












              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







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Mar 20 at 15:35









              user68186

              14.4k84461




              14.4k84461











              • 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




                @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

















              • 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




                @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
















              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













              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.






              share|improve this answer


























                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.






                share|improve this answer
























                  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.






                  share|improve this answer














                  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.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Mar 20 at 18:36

























                  answered Mar 20 at 15:37









                  sudodus

                  20.2k32667




                  20.2k32667




















                      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.






                      share|improve this answer
























                        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.






                        share|improve this answer






















                          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.






                          share|improve this answer












                          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.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Mar 20 at 15:36









                          Panther

                          75.1k10149256




                          75.1k10149256



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              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













































































                              Popular posts from this blog

                              pylint3 and pip3 broken

                              Missing snmpget and snmpwalk

                              How to enroll fingerprints to Ubuntu 17.10 with VFS491