[MacPorts] #70633: Add an option for `port reclaim` to clean up old log files

MacPorts noreply at macports.org
Wed Sep 4 12:09:52 UTC 2024


#70633: Add an option for `port reclaim` to clean up old log files
--------------------------+--------------------
  Reporter:  cooljeanius  |      Owner:  (none)
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  base         |    Version:  2.10.0
Resolution:               |   Keywords:
      Port:               |
--------------------------+--------------------

Comment (by cooljeanius):

 Replying to [comment:3 ryandesign]:
 > `sudo port clean all` should remove logfiles for all known ports.
 Unknown ports (for example ports that have been deleted) are unknown to
 MacPorts so it can't do anything about them.

 I mean, it can still see that the files are there, though, so can't it
 just clean them up anyways, without having to know their ports?

 > I was not aware that the registry would ever contain anything that was
 unused. What's an example of that?

 I'm just looking at directories under
 `/opt/local/var/macports/registry/portfiles`, and it's got stuff like
 ports from old perl versions that no longer exist like perl5.24 in there;
 is there any reason to keep things like that?

-- 
Ticket URL: <https://trac.macports.org/ticket/70633#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list