FreeBSD 13: How to Properly Update Python From 3.8 to 3.9
Instead of routinely having to dig this up from the only place this is documented, the ports tree, here’s a one-liner ready for copy-and-pasting:
sh -c "for i in $(pkg query -g %n 'py38-*'); do pkg set -yn ${i}:py39-${i#py38-}; done" && pkg upgrade