Determining the date a given port was installed

Clemens Lang cal at macports.org
Wed Jan 7 11:09:30 PST 2015


Hi,

----- On 7 Jan, 2015, at 19:26, Adam Mercer ram at macports.org wrote:

> Is there a way to determine the date that a given port was installed?
> So far I've just been looking at the date of files provided by the
> port but I'm wondering if there is a better way to determine this?

There is:

echo $'.load $mp_src/src/cregistry/macports.sqlext\nSELECT name, date FROM ports WHERE name LIKE "$port";' | sqlite3 $prefix/var/macports/registry/registry.db

Replace variables as necessary.

-- 
Clemens Lang


More information about the macports-users mailing list