Opened 17 months ago

Last modified 17 months ago

#66524 closed enhancement

Autoremove macports/software not to waste space with archived duplicates — at Initial Version

Reported by: esbugz Owned by:
Priority: Normal Milestone:
Component: base Version: 2.8.0
Keywords: Cc:
Port:

Description

After installing some ports I realized there is this huge duplicate folder containing .tbz2 archives, which from the Guide:

software Contains the compressed archives of installed software. If a port is activated its files are extracted to the ${prefix} folders from the compressed files here. port uninstall <port> <version>+<variant> would remove it from here, but then this port can not be used anymore.

So this offers no rationale why this duplication exists, nor a practical convenient solution for cleaning it. I'd like to delete all of them, but still use the ports

This old SO post https://apple.stackexchange.com/questions/64074/macports-software-clean-up-opt-local-var-macports-software is similar: no rationale, no practical convenient solution

Homebrew has a command that allows you to delete the zips and it also runs the command automatically

I'd like to have something similar in MacPorts:

  • ideally a config that would delete all the duplicates right away after a successful install
  • a command to delete all the archives in the software folder manually
  • maybe a default of running such a command every X days or something?

Change History (0)

Note: See TracTickets for help on using tickets.