finding size of port

Russell Jones russell.jones at physics.ox.ac.uk
Thu Feb 24 03:11:13 PST 2011


How does that give the right result, though? Are all the apparent files outside of that directory linked?

Russell
________________________________________
From: Ryan Schmidt [ryandesign at macports.org]
Sent: 24 February 2011 11:05
To: Russell Jones
Cc: Emmanuel Hainry; macports-users at lists.macosforge.org
Subject: Re: finding size of port

On Feb 24, 2011, at 03:22, Russell Jones wrote:

>> 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):

/opt/local, actually.


>>    du -h /opt/local/var/macports/software/texlive-latex-extra/
>
> 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.




More information about the macports-users mailing list