How to automatically save msgs output by pkg install

Does anyone have any tips on how to automatically record msgs from pkg install when installing pkgs so they can be referred to subsequently?

An alias with additional commands would be useful.
 
Easily done after the fact, pkg info -Da > messages.txt

Code:
     -a, --all
             Display all installed packages.
Code:
     -D, --pkg-message
             Show the pkg-message for matching packages.
pkg-info(8)

Edit: Didn't you ask this before?
 
Sort of, but I would like to create log of of these msgs at the time they are installed
pkg install something anotherthing morestuff | tee messages-log.txt

You could use a simple redirect of course, but then you won't see any output on the screen. Hence the use of tee(1).
 
Back
Top