# update\_cache option with package module

**URL:** <https://forum.ansible.com/t/update-cache-option-with-package-module/24664>\
**Category:** Ansible Project\
**Created:** [June 6, 2017, 4:42pm UTC](https://forum.ansible.com/t/update-cache-option-with-package-module/24664 "2017-06-06T16:42:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshua.newlin](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@joshua.newlin](https://forum.ansible.com/u/joshua.newlin)\
**Post date:** [June 6, 2017, 4:42pm UTC](https://forum.ansible.com/t/update-cache-option-with-package-module/24664/1 "2017-06-06T16:42:33Z")

</div>

I swapped all instances of yum to package recently, but there is no way to update yum cache by calling package as there was with yum. Was wondering how I would go about this?

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [June 7, 2017, 2:30pm UTC](https://forum.ansible.com/t/update-cache-option-with-package-module/24664/2 "2017-06-07T14:30:58Z")

</div>

I guess that best solution is to switch back to yum.
