How to list installed software list through packer

19 views
Skip to first unread message

vipin tiwari

unread,
Mar 20, 2018, 3:25:03 PM3/20/18
to Packer
Hi guys, How can i list installed packages on packer build. I'm using post-processors section with the inline shell to list all software but giving local installed software.

Thanks for the help

Alvaro Miranda Aguilera

unread,
Mar 22, 2018, 4:57:05 AM3/22/18
to packe...@googlegroups.com
not clear what you want to do

post-processor run after the VM has been created
if you want to run a command on the guest then you need to use a shell provisioner

can you explain whats the host os whats the guest os and what you want to see and how you want to capture ?

assuming you are running centos, you want say rpm -qa to list all packages?

if yes you could generate a file with the packages output, then download to the host

if could confirm

On Tue, Mar 20, 2018 at 8:25 PM, vipin tiwari <vtiwa...@gmail.com> wrote:
Hi guys, How can i list installed packages on packer build. I'm using post-processors section with the inline shell to list all software but giving local installed software.

Thanks for the help

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/6e40fe0a-4828-4658-9022-27d73a6e89b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages