[MacPorts] #66524: Autoremove macports/software not to waste space with archived duplicates
MacPorts
noreply at macports.org
Wed Dec 21 16:54:21 UTC 2022
#66524: Autoremove macports/software not to waste space with archived duplicates
--------------------------+--------------------
Reporter: esbugz | Owner: (none)
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.8.0
Resolution: | Keywords:
Port: |
--------------------------+--------------------
Description changed by esbugz:
Old 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?
New 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?
P.S. same thing should be done to distfiles
--
--
Ticket URL: <https://trac.macports.org/ticket/66524#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list