# Yum install latest should take into consideration of release numbers

**URL:** <https://forum.ansible.com/t/yum-install-latest-should-take-into-consideration-of-release-numbers/22977>\
**Category:** Ansible Project\
**Created:** [November 8, 2016, 12:35am UTC](https://forum.ansible.com/t/yum-install-latest-should-take-into-consideration-of-release-numbers/22977 "2016-11-08T00:35:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven\_Truong](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@Steven\_Truong](https://forum.ansible.com/u/Steven_Truong)\
**Post date:** [November 8, 2016, 12:35am UTC](https://forum.ansible.com/t/yum-install-latest-should-take-into-consideration-of-release-numbers/22977/1 "2016-11-08T00:35:02Z")

</div>

Hi all,

I have a situation where I have to resort to using the shell instead of yum module:

[root@qa-s1-sm1 ansible]# ansible localhost -c local -m yum -a “name=myrpm-db1.5.1 state=latest enablerepo=repo-Snapshots disablerepo=\*”  
localhost | success \>\> {  
“changed”: false,  
“msg”: “”,  
“rc”: 0,  
“results”: [  
“All packages providing myrpm-db1.5.1 are up to date”  
]  
}

[root@qa-s1-sm1 ansible]# yum --disablerepo=\* --enablerepo=repo-Snapshots install myrpm-db1.5.1  
Loaded plugins: fastestmirror, keys, presto, s3  
Setting up Install Process  
Loading mirror speeds from cached hostfile  
repo-Snapshots | 1.5 kB 00:00  
Resolving Dependencies  
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.  
 → Running transaction check  
—\> Package myrpm-db1.5.1.noarch 0:2.5-SNAPSHOT20161010192219 will be updated  
—\> Package myrpm-db1.5.1.noarch 0:2.5-SNAPSHOT20161107224803 will be an update  
 → Finished Dependency Resolution

Dependencies Resolved
