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

**URL:** <https://forum.ansible.com/t/how-to-get-a-list-of-upgradable-packages-from-yum-apt-or-anothermodule/25364>\
**Category:** Ansible Project\
**Created:** [August 30, 2017, 7:09am UTC](https://forum.ansible.com/t/how-to-get-a-list-of-upgradable-packages-from-yum-apt-or-anothermodule/25364 "2017-08-30T07:09:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karl\_Fiabeschi](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@Karl\_Fiabeschi](https://forum.ansible.com/u/Karl_Fiabeschi)\
**Post date:** [August 30, 2017, 7:09am UTC](https://forum.ansible.com/t/how-to-get-a-list-of-upgradable-packages-from-yum-apt-or-anothermodule/25364/1 "2017-08-30T07:09:43Z")

</div>

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 🙂

Ty

ps i [posted](https://www.reddit.com/r/ansible/comments/6wuexj/how_to_get_a_list_of_upgradable_packages_from_yum/) this question also on reddit sub with no luck

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [August 30, 2017, 7:25am UTC](https://forum.ansible.com/t/how-to-get-a-list-of-upgradable-packages-from-yum-apt-or-anothermodule/25364/2 "2017-08-30T07:25:13Z")

</div>

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.
