Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When i try to install a package through apt-get on linux, it shows me the total amount to be downloaded and the space that will be used after install. Is there a way to view this information while using macports on mac os x?

share|improve this question

Most package management systems install pre-compiled (“binary”) packages. Under such a system, the process of building the pre-compiled package provides ideal times to capture the “install size” and the “download size” for every package (respectively, just before the built files are “packaged up”, and just after the downloadable package files have been assembled). Both of these numbers can be stored in some sort of list/database so that installation programs can quickly sum them up and tell the user what to expect.

MacPorts is, however, based on source code, not pre-compiled packages. Each package is installed by downloading specified source code and compiling it into the final programs and support files. Technically, they could record the expected size for the source code downloads and provide a “download size”, but they do not. In addition, MacPorts supports variants. These build-time options can dramatically affect the “install size” of any given package (e.g. the univeral variant usually adds at least one architecture(s) to a build, so it could nearly double the storage required for an installed package).

The central MacPorts project could build each port (in every combination of its variants!) (for each architecture!) (on each OS release!) and record each final “install size”, but that would require a huge amount of time and resources.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.