需要的工具 ↓

needs-restarting – report running processes that have been updated

needs-restarting is a program that reports a list of process ids that started running before they or some
component that they use were updated.

它是在 yum-utils 裡面

所以首先要安裝 yum-utils

yum install yum-utils

執行

needs-restarting -r

不需要的話就會 ↓

No core libraries or services have been updated.
Reboot is probably not necessary.

這樣就需要 ↓

Core libraries or services have been updated:
  dbus -> 1:1.10.24-14.el7_8
  systemd -> 219-73.el7_8.9

Reboot is required to ensure that your system benefits from these updates.

 

參考 How to check if CentOS / RHEL needs a full reboot

Related posts 相關文章

作者

留言

撰寫回覆或留言

發佈留言必須填寫的電子郵件地址不會公開。