Ubuntu
Check
/var/run/reboot-required
whether the file existsll /var/run/reboot-required
CentOS
Use the
needs-restarting
command to judge# needs-restarting 命令在软件包yum-utils 中 yum install yum-utils # 判断 needs-restarting -r
- Official documentation: Identify packages that will require a system reboot after an update
This article is from qbit snap
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。