how to get a list of upgradable packages from yum,apt or anothermodule

Hi there, is it possible with the yum or apt module to obtain a list of upgradable packages without upgrading them?

Like the command “yum check-update” or “apt list --upgradable”

Only output, json format is better :slight_smile:

Ty

ps i posted this question also on reddit sub with no luck

No.
Those modules are meant to ensure a specific package is in a specific state.
For what you want you have to resort to the command module and parse the output.