[MacPorts] #27244: base: action to show disk space used by an active port
MacPorts
noreply at macports.org
Tue Nov 9 22:00:54 PST 2010
#27244: base: action to show disk space used by an active port
--------------------------------+-------------------------------------------
Reporter: ww.galen@… | Owner: macports-tickets@…
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: base | Version: 1.9.2
Keywords: | Port:
--------------------------------+-------------------------------------------
I propose to add an action named "space" to show the disk space used by
installed files in an active port. Similar information is available by
running the command "`du -sk /opt/local/var/macports/software/<port
name>`", but an action is a little handier. The total doesn't include any
files used to create or keep track of the port, such as those in
/opt/local/var/macports/{receipts,sources}.
The patch adds support for this action, as well as options that specify
the default units for sizes: -K for KiB, -M for MiB, -B for bytes. These
options are applicable to other (such as another proposed feature of mine
to include file sizes when listing port contents), which is why they are
global options rather than action flags. Another possible option (-H)
would say to make the sizes human readable (i.e. autoscaled), picking the
unit that best matches the value magnitude. As this should be the default
behavior, I've left out this option for now.
Example usage:
{{{
$ port space autoconf gawk zip
2.960 MiB autoconf
5.038 MiB gawk
800.381 KiB zip
8.779 MiB total
}}}
--
Ticket URL: <https://trac.macports.org/ticket/27244>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list