Determining the date a given port was installed

Ryan Schmidt ryandesign at macports.org
Wed Jan 7 21:42:59 PST 2015


On Jan 7, 2015, at 4:50 PM, Adam Mercer wrote:
> 
> On Wed, Jan 7, 2015 at 1:20 PM, René J.V. wrote:
> 
>> You could also look at the files in ${prefix}/var/macports/software/${name}
> 
> That seems to be the most straightforward approach, thanks.

And the "port location" command can help you with that. So you could use:

$ ls -l $(port -q location zlib)
-rw-r--r--  1 root  wheel  211184 Sep 21 03:27 /opt/local/var/macports/software/zlib/zlib-1.2.8_0+universal.darwin_14.i386-x86_64.tbz2

Or even:

$ ls -lT $(port -q location zlib) | awk '{print $6" "$7" "$8" "$9}'
Sep 21 03:27:38 2014



More information about the macports-users mailing list