My understanding is that reclaim does only remove unused stuff.

At some point I have many versions of python on my systems, and not only that 
different systems had ports that were using different versions of supporting 
ports (like python 3.9 versus 3.10). As these were ‘used’ they are not removed 
by reclaim.

So, the only way to get a fully clean (no ports installed at all) MacPorts is

sudo port -f uninstall installed
sudo port -N reclaim

After which you can reinstall your ports. A port that used to rely on python 
3.9 gets freshly configured to use 3.10, where simply updating the port keeps 
the old choice in place.

G


> On 25 Jun 2025, at 19:53, Saj Goonatilleke <[email protected]> wrote:
> 
> (Sorry, I know this is not your actual question, and that your actual 
> question was already answered by jmr...)
> 
> On Thu, 26 Jun 2025, at 01:57, Gerben Wierda wrote:
>> When I update my MacPorts collection, I use a script that cleans 
>> MacPorts, then installs everything anew. That way, if for instance a 
>> port switches by  default from, say one version to another version of 
>> something it needs (say python) my port doesn’t keep the old version of 
>> that support (like python) around needlessly.
> 
> Is this not what 'port reclaim' does?
> (without needing to install everything anew)

Reply via email to