finding size of port
ryandesign at macports.org
Thu Feb 24 03:12:47 PST 2011
On Feb 24, 2011, at 05:11, Russell Jones wrote:
>>> Will that work in the general case? How so?
>> In the general case of a port you have installed, yes. I use:
>> du -sh /opt/local/var/macports/software/PORTNAME/*
>> where you would replace "PORTNAME" with the name of the port you want to know the installed size of.
> How does that give the right result, though? Are all the apparent files outside of that directory linked?
Yes. All the files a port installs are in /opt/local/var/macports/software/PORTNAME/*, and all the files outside of there are hardlinks to those files. They take up no additional space.
More information about the macports-users