adhoc command to check all installed packets and their versions
17 views
Skip to first unread message
Dimitar Ivanov
unread,
Mar 7, 2016, 8:56:51 AM3/7/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
Hi all, I'm wondering how to check all installed packets and their versions in the box I can send ansible all -i /path-to-the-hosts/hosts -a "rpm -q glibc" but how to check all installed packets locally I'm using "yum list installed > packs.txt" thanks in advance Best Regards
Johannes Kastl
unread,
Mar 7, 2016, 3:25:40 PM3/7/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
Am 07.03.16 schrieb Dimitar Ivanov:
> locally I'm using "yum list installed > packs.txt"
Why not use that call?
ansible -m command -a "yum list installed"
(I tested locally with -a "rpm -qa", which worked)