# Anisble: List of packages version comparison on suse 11

**URL:** <https://forum.ansible.com/t/anisble-list-of-packages-version-comparison-on-suse-11/28118>\
**Category:** Ansible Project\
**Created:** [July 22, 2018, 12:49pm UTC](https://forum.ansible.com/t/anisble-list-of-packages-version-comparison-on-suse-11/28118 "2018-07-22T12:49:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ankur\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@Ankur\_Gupta](https://forum.ansible.com/u/Ankur_Gupta)\
**Post date:** [July 22, 2018, 12:49pm UTC](https://forum.ansible.com/t/anisble-list-of-packages-version-comparison-on-suse-11/28118/1 "2018-07-22T12:49:53Z")

</div>

I have a list of packages with version and I want to check on the system and compare the version with the list.  
I am able to check a single package using version\_compare. how can I compare with the list?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [July 24, 2018, 5:04am UTC](https://forum.ansible.com/t/anisble-list-of-packages-version-comparison-on-suse-11/28118/2 "2018-07-24T05:04:46Z")

</div>

map/select/reject filters work on lists

map will return the full list, but can process the items via filter/test

select/reject return only the items that match/dont match a test
