On 07/ 9/12 02:12 PM, Shawn Walker wrote:
On 07/09/12 11:02, Hugh Coomes wrote:
Is there a way of producing a report of all the packages installed on a
system and the date/time each package was installed or last updated?

Yes, but it will require some scripting to parse the output of the "pkg
history" subcommand.

I have not found a way of doing this with the pkg command. Is the
date/time of a package installation or update recorded anywhere ?

"pkg history -l" will give you the information you seek, but there
currently are no convenient options for outputting the information in a
format that's easily parsable.

There are enhancements planned for the history subcommand to make this
information more easily accessible for auditing purposes.

-Shawn

Thanks for the info.  Some work with perl on the output of
"pkg history -l" should give me what I want.

Hugh
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to