finding size of port

Russell Jones russell.jones at
Thu Feb 24 01:22:45 PST 2011

Will that work in the general case? How so?

From: macports-users-bounces at [macports-users-bounces at] on behalf of Emmanuel Hainry [milosh at]
Sent: 23 February 2011 17:48
To: macports-users at
Subject: Re: finding size of port

Citando Russell Jones :
> If you have access to a system with it installed, you could use the following to get the size in kilobytes
> port contents texlive-latex-extra | xargs file | grep -vE ": directory$" | cut -d: -f1 | xargs du -k | cut -f1 | paste -s -d "+" - | bc

Or (assuming your macports prefix is /opt/local/var):

    du -h /opt/local/var/macports/software/texlive-latex-extra/

macports-users mailing list
macports-users at

More information about the macports-users mailing list