"needs-restarting -r" doesn't report the system has to be rebooted after important updates such as the kernel or systemd

Solution Verified - Updated -

Issue

  • After updating the system, which caused a new kernel or a new systemd package to be installed, the tool doesn't report the system has to be rebooted

    # yum -y reinstall systemd
    [...]
    # needs-restarting -r
    [...]
    No core libraries or services have been updated since boot-up.
    Reboot should not be necessary.
    
  • After updating the system which caused a new kernel or a new systemd package to be installed and rebooting, the tool continues to report the system has to be rebooted

    # yum -y reinstall systemd
    [...]
    # reboot
    [...]
    # needs-restarting -r
    [...]
    Core libraries or services have been updated since boot-up:
      * systemd
    
    Reboot is required to fully utilize these updates.
    

Environment

  • Red Hat Enterprise Linux 8
    • yum-utils

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content