Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Sep 2015 08:04:50 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-pkg@freebsd.org
Subject:   Re: pkg list installed by date
Message-ID:  <55EFDA12.2060702@FreeBSD.org>
In-Reply-To: <CAKE2PDtd1L=Ra1Cv_mKOtTyh2vpGQp6BedB82LsSaH73hNNhMA@mail.gmail.com>
References:  <CAKE2PDtd1L=Ra1Cv_mKOtTyh2vpGQp6BedB82LsSaH73hNNhMA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--2g2dEKfs0NF0L0nVHGN63bDR5Dlo0m4kV
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 08/09/2015 22:52, jungle Boogie wrote:
> Hello,
>=20
> Requesting help with simple query.
>=20
> I want to list installed packages by their install/update timestamp.
>=20
> % pkg query %n-%t
> and
> % pkg query %t-%n
>=20
> List packages installed alphabetically.

pkg-query(8) doesn't provide any sorting capabilities.  However, it is
fairly trivial to pipe the output into sort(1)

> Also is the %t UTC or local time?

Neither.  It's the unix time -- seconds since the epoch, where the epoch
date is:

% env TZ=3DUTC date -j -f %s 0
Thu Jan  1 00:00:00 UTC 1970

or the same time in whatever timezone you inhabit.

	Cheers,

	Matthew



--2g2dEKfs0NF0L0nVHGN63bDR5Dlo0m4kV
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2

iQJ8BAEBCgBmBQJV79oaXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC
QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkAT/nIP/Aqxtl8mctqemYftp+7CtI7Q
hetuO+7MRjyo/fYd8K2atm2OSNKd19dME+1b84256JFzRivVw4M8B6UfkB1zdvdU
4zqMOJuUZKC3Q5qQ7wIToeGLdg9U32LteByunOlDYtiOqd6qdsTPTadSwv+zkjx1
j+mDQIaW9F07kMXdFLwpeWphL3Tp6qtE+6n8PbC5DQETm3v24vgVlygg4rdXpvO6
dhhPNLH0gBGUnRdHL3AlSExu0cjbqeO5wCIF9wsJB+fK+lHbvvtYzy+kNVU2gqXZ
B25WCPABYlU3Q+9p9T0E6xbBCllAouIICzKRpzVr35rwnR49HLDENXQqyKIlocMf
ORIYI/CDFo8rGkxKtHW8CZ3E0ey9xSkt6Z80nmVAJV/TvZaRmLSOlBhGDwjQlMRm
+8n3TksXFblABBmKVqqZbxkdTJakArawAA0opATjeYScIyGR+O3QMp5BuvPVmJqN
WpfoXJJ9Z+NcEj0O/7XZN5G27uU21MJz1TnWA8mb8uqW9Oc9X+z9MjBD9Yc7+RCm
cMJ5b4N/xnNqtBh2IXGzRGk8lw3aJLu2nOvLeQoMIfqLS7jn5je0amzdiob9Cv05
NnslgOR3TmP4lHclVdiTp93D8LEVV0TzGGW7EKMJbkrFR+Ykpa4kufnElVZE4+Aj
bH8mPUbELizqBV+8xy2t
=cbug
-----END PGP SIGNATURE-----

--2g2dEKfs0NF0L0nVHGN63bDR5Dlo0m4kV--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55EFDA12.2060702>