-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2007-11-30 at 22:22 -0600, Bryen wrote:
On Sat, 2007-12-01 at 05:00 +0100, Carlos E. R. wrote:
rpm -q -a --queryformat "%{INSTALLTIME}\t%{INSTALLTIME:day} \ %{BUILDTIME:day} %-30{NAME}\t%15{VERSION}-%-7{RELEASE} \ %25{PACKAGER}\n" | sort | less -S
That's very cool. What does the first column represent? I'm assuming it is install time based on unix time?
Some internal time representation, I think seconds from certain date which I think is called unix time, yes. I use it as the sort field, being the first one. It could be removed from the ooutput, let me think... here: rpm -q -a --queryformat "%{INSTALLTIME}\t%{INSTALLTIME:day} \ %{BUILDTIME:day} %-30{NAME}\t%15{VERSION}-%-7{RELEASE} \ %25{PACKAGER}\n" | sort | cut --fields="2-" | less -S even better :-) I wrote that before knowing about the --last token. Let's try... rpm -q -a --last --queryformat "%{INSTALLTIME:day} \ %{BUILDTIME:day} %-30{NAME}\t%15{VERSION}-%-7{RELEASE} \ %25{PACKAGER}\n" | less -S but the output is broken! pine-pgp-filters-1.5-1 Sat 01 Dec 2007 02:04:02 AM CET emacs-x11-22.1-40.7 Thu 29 Nov 2007 07:51:39 PM CET emacs-22.1-40.7 Thu 29 Nov 2007 07:50:51 PM CET emacs-info-22.1-40.7 Thu 29 Nov 2007 07:48:14 PM CET MozillaFirefox-2.0.0.10-0.1 Thu 29 Nov 2007 07:47:12 PM CET No, --last doesn't work with --queryformat in any position. No idea why.
What would put in if I wanted to generate a report that included which repository the packages came from?
rpm --querytags that lists all the available tags - there are a lot! ;-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHUT2btTMYHG2NR9URAn9bAJoCCuTP6XGV5GBTdmZdz6P3ABLV0wCfQxcG +HwU80e+vNUGvrP5Otl5M/4= =kyX1 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org