Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

The MacPorts directory /opt/local/var/macports/software is really full of "stuff":

Can all the .tbz2 files be deleted?

I am running out of space on the SSD.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Yes all the files in that folder located with in ${prefix}/var/macports/software/ can be deleted. Those are the installer packages for programs that you installed using MacPorts. MacPorts will re-download those as necessary when running the install or presumably the upgrade command too for a given program ,etc.

The descripton of the purpose of the directory ... is noted in MacPorts Guide under Binary Archives.

3.4.1. Binary Archives

Binary archives can only be used on a target system running MacPorts. Binary archives allow MacPorts utilities to begin installation after the destroot phase and install and activate a port on the target system. Binary archives are created whenever a port is installed, and can also be downloaded from a server.

...

Binary archive files are placed in ${prefix}/var/macports/software/. The archive file type is set in the macports.conf file. The default format is .tbz2; other options are: tar, tbz, tbz2, tgz, tlz, txz, xar, zip, cpgz, cpio.

share|improve this answer
    
Is there a means to have this done automatically? I mean, some configuration so that sudo port upgrade outdated always cleans these files when done. TIA! –  akim Oct 7 '13 at 9:14
add comment

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.