<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"></div><div dir="ltr">I do something like this:</div><div dir="ltr"><pre style="box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 0px; overflow-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; color: rgb(31, 35, 40); border-radius: 6px; word-break: normal; caret-color: rgb(31, 35, 40); -webkit-text-size-adjust: 100%;"><span class="pl-k" style="font-size: 13.6px; box-sizing: border-box;">export</span><span style="font-size: 13.6px;"> OLDV=39 NEWV=310</span></pre><pre style="box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 0px; overflow-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; color: rgb(31, 35, 40); border-radius: 6px; word-break: normal; caret-color: rgb(31, 35, 40); -webkit-text-size-adjust: 100%;">sudo -E port -pNc install <span class="pl-s" style="box-sizing: border-box;"><span class="pl-pds" style="box-sizing: border-box;">"</span>python<span class="pl-smi" style="box-sizing: border-box;">${NEWV}</span><span class="pl-pds" style="box-sizing: border-box;">"</span></span> <span class="pl-s" style="box-sizing: border-box;"><span class="pl-pds" style="box-sizing: border-box;">$(</span></span>port installed "py${OLDV}-*" | sed -E -e "s/[[:space:]]+py${OLDV}/py${NEWV}/" | cut -d " " -f1 | tr '\n' ' '<span class="pl-pds" style="font-size: 13.6px; box-sizing: border-box;">)</span></pre><pre style="box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 0px; overflow-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; color: rgb(31, 35, 40); border-radius: 6px; word-break: normal; caret-color: rgb(31, 35, 40); -webkit-text-size-adjust: 100%;"><span class="pl-pds" style="font-size: 13.6px; box-sizing: border-box;">sudo port uninstall </span><span style="font-size: 13.6px;">"py${OLDV}-*"</span></pre></div><div dir="ltr"><br><blockquote type="cite">On Dec 31, 2023, at 04:47, Kenneth Wolcott <kennethwolcott@gmail.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><span>Hi;</span><br><span></span><br><span>How to wean myself away from Python 3.9? and then Python3.10?</span><br><span></span><br><span>There's so much that I don't understand about MacPorts.</span><br><span></span><br><span>Should I uninstall everything that depends on Python 3.9 and then</span><br><span>Python 3.9 and then re-install those apps that I uninstalled from the</span><br><span>first sequence? How will that not put me back to where O started?</span><br><span></span><br><span>The same question applies to Perl.</span><br><span></span><br><span>Thanks,</span><br><span>Ken Wolcott</span><br></div></blockquote></body></html>