Is there a way to print output when running 'apt_package'?


#1

I read the official document below but could not find a way.
https://docs.chef.io/resource_apt_package.html
If there is no way with ‘apt_package’, probably, I could use ‘execute’ with live_stream on?


#2

If you just mean for debugging purposes, you can see most of that kind of stuff by setting the log level up (-l trace, or -l debug for pre-14).


#3

@coderanger, I mean the shell outputs when ‘apt update’ and ‘apt install’. With kitchen, I tried -l and --color flag to see the debug log but the output is still not showing up. I found ‘apt_package’ executes apt-get command with ‘-q’ flag. Maybe that is properly the reason I guess…