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

Russell
________________________________________
From: Ryan Schmidt [[email protected]]
Sent: 24 February 2011 11:05
To: Russell Jones
Cc: Emmanuel Hainry; [email protected]
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.


_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Reply via email to