RH8 yum --anything check-update command.

Latest response

Issuing any of the commands to check for updates non interactively.
yum --security check-update
or
dnf

Doesn't matter what option is used, bugfixes, security, etc.

The response line, when there are packages available, is sent to stderr, instead of stdout.

Example:
yum --bugfix check-update 2>/dev/null
Last metadata expiration check: 0:14:42 ago on Fri 07 Feb 2020 09:29:06 AM EST.

yum --bugfix check-update
Last metadata expiration check: 0:14:48 ago on Fri 07 Feb 2020 09:29:06 AM EST.
No security updates needed, but 1 update available

The actual response line, should be in stdout, not in stderr.

Responses