1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| [root@cephJ ~]# yum -h | grep show --showduplicates 在 list/search 命令下,显示源里重复的条目
[root@cephJ ~]# yum --showduplicates list ansible 已加载插件:fastestmirror, priorities Loading mirror speeds from cached hostfile * base: mirrors.cn99.com * epel: www.ftp.ne.jp * extras: mirrors.nwsuaf.edu.cn * nux-dextop: li.nux.ro * updates: mirrors.nwsuaf.edu.cn 12 packages excluded due to repository priority protections 可安装的软件包 ansible.noarch 2.4.2.0-2.el7 extras ansible.noarch 2.7.5-1.el7 epel
### sudo yum install <package name>-<version info> [root@cephJ ~]# sudo yum install -y ansible-2.4.2.0
[root@cephJ ~]# ansible --version ansible 2.4.2.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible python version = 2.7.5 (default, Apr 11 2018, 07:36:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
|