# How to compare RPM versions

**URL:** <https://forum.ansible.com/t/how-to-compare-rpm-versions/3794>\
**Category:** Get Help\
**Tags:** collections\
**Created:** [February 9, 2024, 7:12pm UTC](https://forum.ansible.com/t/how-to-compare-rpm-versions/3794 "2024-02-09T19:12:34Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![jrglynn2](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@jrglynn2](https://forum.ansible.com/u/jrglynn2)\
**Post date:** [February 14, 2024, 4:11pm UTC](https://forum.ansible.com/t/how-to-compare-rpm-versions/3794/10 "2024-02-14T16:11:07Z")

</div>

I have never used this myself, but check out this thread here on the forum, it talks about modifying what the ansible output shows ==\> [Ansible Output Label](http://forum.ansible.com/t/ansible-output-label/3786) \<== maybe that can help display what you want.

Or, if that doesn’t work or is too complicated, you can always add some steps to read the `/var/log/yum.log` (or the corresponding log if not `yum`), and then echo to the screen/ansible log what was installed today.

---

_[View the full topic](https://forum.ansible.com/t/how-to-compare-rpm-versions/3794)._
