Why do I need to restart OS after some package upgrade? [duplicate]

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











up vote
-2
down vote

favorite













This question already has an answer here:



  • What forces a reboot?

    2 answers



On Ubuntu, when running sudo apt update; sudo apt upgrade, why sometimes it asks me to restart my OS and sometimes not?



What do the packages that have that restart requirement have in common? Is it not possible to update such a package without restart OS requirement?



If I am correct, sudo apt update; sudo apt upgrade can also update/upgrade kernel. Does kernel update/upgrade also require OS restart?



Thanks.



I often keep my Ubuntu up indefinitely long, because I am always running some programs and I don't want to interrupt them.










share|improve this question















marked as duplicate by muru, Jeff Schaller, Stephen Kitt debian
Users with the  debian badge can single-handedly close debian questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
18 hours ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 1




    Ask ubuntu developers. Restarting the upgraded program is enough, or all programs which depends on an upgraded library.
    – Ipor Sircer
    21 hours ago






  • 3




    It depends on what's being updated. When the kernel itself, kernel modules, or libraries are updated, it's best to reboot to make sure that applications and processes aren't broken by trying to reference older versions.
    – Nasir Riley
    21 hours ago














up vote
-2
down vote

favorite













This question already has an answer here:



  • What forces a reboot?

    2 answers



On Ubuntu, when running sudo apt update; sudo apt upgrade, why sometimes it asks me to restart my OS and sometimes not?



What do the packages that have that restart requirement have in common? Is it not possible to update such a package without restart OS requirement?



If I am correct, sudo apt update; sudo apt upgrade can also update/upgrade kernel. Does kernel update/upgrade also require OS restart?



Thanks.



I often keep my Ubuntu up indefinitely long, because I am always running some programs and I don't want to interrupt them.










share|improve this question















marked as duplicate by muru, Jeff Schaller, Stephen Kitt debian
Users with the  debian badge can single-handedly close debian questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
18 hours ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 1




    Ask ubuntu developers. Restarting the upgraded program is enough, or all programs which depends on an upgraded library.
    – Ipor Sircer
    21 hours ago






  • 3




    It depends on what's being updated. When the kernel itself, kernel modules, or libraries are updated, it's best to reboot to make sure that applications and processes aren't broken by trying to reference older versions.
    – Nasir Riley
    21 hours ago












up vote
-2
down vote

favorite









up vote
-2
down vote

favorite












This question already has an answer here:



  • What forces a reboot?

    2 answers



On Ubuntu, when running sudo apt update; sudo apt upgrade, why sometimes it asks me to restart my OS and sometimes not?



What do the packages that have that restart requirement have in common? Is it not possible to update such a package without restart OS requirement?



If I am correct, sudo apt update; sudo apt upgrade can also update/upgrade kernel. Does kernel update/upgrade also require OS restart?



Thanks.



I often keep my Ubuntu up indefinitely long, because I am always running some programs and I don't want to interrupt them.










share|improve this question
















This question already has an answer here:



  • What forces a reboot?

    2 answers



On Ubuntu, when running sudo apt update; sudo apt upgrade, why sometimes it asks me to restart my OS and sometimes not?



What do the packages that have that restart requirement have in common? Is it not possible to update such a package without restart OS requirement?



If I am correct, sudo apt update; sudo apt upgrade can also update/upgrade kernel. Does kernel update/upgrade also require OS restart?



Thanks.



I often keep my Ubuntu up indefinitely long, because I am always running some programs and I don't want to interrupt them.





This question already has an answer here:



  • What forces a reboot?

    2 answers







debian ubuntu apt package-management






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 21 hours ago

























asked 21 hours ago









Tim

24.7k70239433




24.7k70239433




marked as duplicate by muru, Jeff Schaller, Stephen Kitt debian
Users with the  debian badge can single-handedly close debian questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
18 hours ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by muru, Jeff Schaller, Stephen Kitt debian
Users with the  debian badge can single-handedly close debian questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
18 hours ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









  • 1




    Ask ubuntu developers. Restarting the upgraded program is enough, or all programs which depends on an upgraded library.
    – Ipor Sircer
    21 hours ago






  • 3




    It depends on what's being updated. When the kernel itself, kernel modules, or libraries are updated, it's best to reboot to make sure that applications and processes aren't broken by trying to reference older versions.
    – Nasir Riley
    21 hours ago












  • 1




    Ask ubuntu developers. Restarting the upgraded program is enough, or all programs which depends on an upgraded library.
    – Ipor Sircer
    21 hours ago






  • 3




    It depends on what's being updated. When the kernel itself, kernel modules, or libraries are updated, it's best to reboot to make sure that applications and processes aren't broken by trying to reference older versions.
    – Nasir Riley
    21 hours ago







1




1




Ask ubuntu developers. Restarting the upgraded program is enough, or all programs which depends on an upgraded library.
– Ipor Sircer
21 hours ago




Ask ubuntu developers. Restarting the upgraded program is enough, or all programs which depends on an upgraded library.
– Ipor Sircer
21 hours ago




3




3




It depends on what's being updated. When the kernel itself, kernel modules, or libraries are updated, it's best to reboot to make sure that applications and processes aren't broken by trying to reference older versions.
– Nasir Riley
21 hours ago




It depends on what's being updated. When the kernel itself, kernel modules, or libraries are updated, it's best to reboot to make sure that applications and processes aren't broken by trying to reference older versions.
– Nasir Riley
21 hours ago










2 Answers
2






active

oldest

votes

















up vote
3
down vote













It depends on what is running and being updated. The kernel needs to be restarted no matter what. If a main component gets updated such as glibc you may need to restart every application. If that is the case a reboot is the easiest. Run the update and type lsof | grep deleted. You will see if the kernel is holding any of those files opened still.






share|improve this answer








New contributor




Ryan Young is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    up vote
    2
    down vote













    A reboot is rarely mandatory, even if notifications say so, but it is easier than restarting all the dependent services and applications. Examine the updated packages with apt-cache show [package name] or apt changelog [package name], to decide if there are critical security updates, or if you can get by without them until reboot.



    Since you mentioned having important programs running that you do not want to interrupt, I heard it is possible to livepatch kernel updates without rebooting, but the setup adds additional complexity and support, so distros don't automatically include it.






    share|improve this answer



























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      3
      down vote













      It depends on what is running and being updated. The kernel needs to be restarted no matter what. If a main component gets updated such as glibc you may need to restart every application. If that is the case a reboot is the easiest. Run the update and type lsof | grep deleted. You will see if the kernel is holding any of those files opened still.






      share|improve this answer








      New contributor




      Ryan Young is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





















        up vote
        3
        down vote













        It depends on what is running and being updated. The kernel needs to be restarted no matter what. If a main component gets updated such as glibc you may need to restart every application. If that is the case a reboot is the easiest. Run the update and type lsof | grep deleted. You will see if the kernel is holding any of those files opened still.






        share|improve this answer








        New contributor




        Ryan Young is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.



















          up vote
          3
          down vote










          up vote
          3
          down vote









          It depends on what is running and being updated. The kernel needs to be restarted no matter what. If a main component gets updated such as glibc you may need to restart every application. If that is the case a reboot is the easiest. Run the update and type lsof | grep deleted. You will see if the kernel is holding any of those files opened still.






          share|improve this answer








          New contributor




          Ryan Young is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          It depends on what is running and being updated. The kernel needs to be restarted no matter what. If a main component gets updated such as glibc you may need to restart every application. If that is the case a reboot is the easiest. Run the update and type lsof | grep deleted. You will see if the kernel is holding any of those files opened still.







          share|improve this answer








          New contributor




          Ryan Young is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|improve this answer



          share|improve this answer






          New contributor




          Ryan Young is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered 21 hours ago









          Ryan Young

          311




          311




          New contributor




          Ryan Young is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          Ryan Young is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          Ryan Young is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






















              up vote
              2
              down vote













              A reboot is rarely mandatory, even if notifications say so, but it is easier than restarting all the dependent services and applications. Examine the updated packages with apt-cache show [package name] or apt changelog [package name], to decide if there are critical security updates, or if you can get by without them until reboot.



              Since you mentioned having important programs running that you do not want to interrupt, I heard it is possible to livepatch kernel updates without rebooting, but the setup adds additional complexity and support, so distros don't automatically include it.






              share|improve this answer
























                up vote
                2
                down vote













                A reboot is rarely mandatory, even if notifications say so, but it is easier than restarting all the dependent services and applications. Examine the updated packages with apt-cache show [package name] or apt changelog [package name], to decide if there are critical security updates, or if you can get by without them until reboot.



                Since you mentioned having important programs running that you do not want to interrupt, I heard it is possible to livepatch kernel updates without rebooting, but the setup adds additional complexity and support, so distros don't automatically include it.






                share|improve this answer






















                  up vote
                  2
                  down vote










                  up vote
                  2
                  down vote









                  A reboot is rarely mandatory, even if notifications say so, but it is easier than restarting all the dependent services and applications. Examine the updated packages with apt-cache show [package name] or apt changelog [package name], to decide if there are critical security updates, or if you can get by without them until reboot.



                  Since you mentioned having important programs running that you do not want to interrupt, I heard it is possible to livepatch kernel updates without rebooting, but the setup adds additional complexity and support, so distros don't automatically include it.






                  share|improve this answer












                  A reboot is rarely mandatory, even if notifications say so, but it is easier than restarting all the dependent services and applications. Examine the updated packages with apt-cache show [package name] or apt changelog [package name], to decide if there are critical security updates, or if you can get by without them until reboot.



                  Since you mentioned having important programs running that you do not want to interrupt, I heard it is possible to livepatch kernel updates without rebooting, but the setup adds additional complexity and support, so distros don't automatically include it.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 20 hours ago









                  hellork

                  665




                  665












                      Popular posts from this blog

                      How to check contact read email or not when send email to Individual?

                      Bahrain

                      Postfix configuration issue with fips on centos 7; mailgun relay