Ubuntu
检查
/var/run/reboot-required
文件是否存在即可ll /var/run/reboot-required
CentOS/RHEL
利用
needs-restarting
命令判断# needs-restarting 命令在软件包yum-utils 中 yum install yum-utils # 判断 needs-restarting -r
- 官方文档:Identify packages that will require a system reboot after an update
本文出自 qbit snap