The default Python version in the ports tree was updated to 3.12 and new py312-* packages are available.

To update your existing python packages to corresponding 312 versions, use following commands:

Hint: Use the pkg -n option to do a dry run in order to double check the changes

pkg update # Update pkg database
pkg set -p -n py311-:py312- # replace py311 with py312
service SERVICENAME stop # Stop the updated service oder services! 
pkg upgrade # The actual upgrade
pkg install python # keeps the metaport and dependencies constant
pkg autoremove # remove 3.11 leftovers. Be careful and skip it, if you have manually installed ports or you are unsure
service -R # Restart all servies
pkg clean -ya # remove old package sources

The BSDBox is my IT playground. Professional services around network, server and structure building I offer with my company computing-competence. If you find this content valuable and useful, I welcome feedback via matrix, email or follow me on Mastodon.

Previous Post