Solved Listing messages for installed pkgs

Is there any way to redirect messages to a file at the same time as installing pkgs?
Not actually tried (don't have anything handy to install and clearly harmless for me), but assuming pkg outputs to stdout, pkg install <pkg_to_install> | tee <file_to_save> would work with messages to be shown to display, too.

If it fails to accept "y" for confirmation, dry-run with pkg install -n <pkg_to_install> first to confirm it's really what you want, and if OK, pkg install -y <pkg_to_install> | tee <file_to_save> to install without confirmation may work.
 
Back
Top