Here’s the command to determine if a host needs rebooting after system updates in Redhat.

$ needs-restarting