Migrating MacPorts after a major operating system upgrade or from one computer to another
A MacPorts installation is designed to work with a particular operating system and a particular hardware architecture.
This migration procedure ensures a smooth transition after major system changes, such as:
major operating system upgrades (e.g., from macOS 10.15 Catalina to macOS 11 Big Sur).
architecture migrations (e.g., from Intel to Apple Silicon).
migrations from one computer to another
If you don’t want to migrate, you can always uninstall MacPorts entirely before manually reinstalling ports.
Note: If you move from one Mac to another Mac using Migration Assistant, you have to do it first.