pkg list installed by date
jungle Boogie
jungleboogie0 at gmail.com
Wed Sep 9 18:05:10 UTC 2015
Hi Matthew,
>> I want to list installed packages by their install/update timestamp.
>
>> % pkg query %n-%t
>> and
>> % pkg query %t-%n
>>
>> 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)
But pkg uses a sqlite3 database. Can't I alter the query? It somehow
has a query to sort alphabetically.
>> 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=UTC date -j -f %s 0
> Thu Jan 1 00:00:00 UTC 1970
> or the same time in whatever timezone you inhabit.
Yes, I should have more clear but that helps.
--
-------
inum: 883510009027723
sip: jungleboogie at sip2sip.info
xmpp: jungle-boogie at jit.si
More information about the freebsd-pkg
mailing list