I do something like this:
export OLDV=39 NEWV=310
sudo -E port -pNc install "python${NEWV}" $(port installed "py${OLDV}-*" | sed
-E -e "s/[[:space:]]+py${OLDV}/py${NEWV}/" | cut -d " " -f1 | tr '\n' ' ')
sudo port uninstall "py${OLDV}-*"
> On Dec 31, 2023, at 04:47, Kenneth Wolcott <[email protected]> wrote:
>
> Hi;
>
> How to wean myself away from Python 3.9? and then Python3.10?
>
> There's so much that I don't understand about MacPorts.
>
> Should I uninstall everything that depends on Python 3.9 and then
> Python 3.9 and then re-install those apps that I uninstalled from the
> first sequence? How will that not put me back to where O started?
>
> The same question applies to Perl.
>
> Thanks,
> Ken Wolcott