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

<pre lang="bash">$ needs-restarting