Skip to content

Instantly share code, notes, and snippets.

@DrTom
Last active October 30, 2023 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DrTom/95bda3f8f2a20e197409c78231e6313a to your computer and use it in GitHub Desktop.
Save DrTom/95bda3f8f2a20e197409c78231e6313a to your computer and use it in GitHub Desktop.
Migrate or Upgrade MacPorts etc after Mac OS Upgrade

Upgrade Mac OS and all related Development Tools

In short: reinsall everything which has been compiled in or linked against libraries the old system.

Upgrade Mac OS

  1. Upgrade OS
  2. Install or Upgrade XCode
  3. Start XCode to perform some final steps
  4. Clean CLI Tools: rm -rf /Library/Develper/CommandLineTools
  5. Reinstall CLI Tools: xcode-select --install

Upgrade Mac Ports

The process is described in detail here: https://trac.macports.org/wiki/Migration. This will probably take very long and you will likely reinstall many oudated and unused packackes.

An alternative ist to clean erverything and reinstall only required packes.

  1. port installed active > ports.txt; alternatively port installed requested and active > ports.txt gives a more concise list but requested and "in use" are not the same in my experience
  2. Uninstall all of MacPorts https://guide.macports.org/chunked/installing.macports.uninstalling.html
  3. Install MacPorts for the new Mac OS version.
  4. Reinstall desired ports maually by picking the contents of ports.txt

Some packages like Postgresql e.g. require further manual setup steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment