

You may skip explicitly installing ports that you did not request as long as they are not using non-default variants since they will be installed as dependencies of other ports.

#MACPORTS ORG INSTALL#
Note that if you have specified variants which are not the default, you may need to install ports in an order other than the alphabetical order recorded in myports.txt. Sudo port install portname +variant1 +variant2 … In the worst case, you can reinstall your ports manually by browsing myports.txt and installing the ports one by one, remembering to specify the appropriate variants: You may need to do this multiple times if there are multiple conflicting ports listed. If the script fails, for this reason, you can delete one of the conflicting ports from myports.txt and then simply run the script again. It's possible to have conflicting ports installed provided at most one of the conflicting set is active. One known issue is that the script will fail if there are conflicting ports in the list. Though it is now quite well-tested, the restore_ports script may fail in some cases. Double-check your desired ports are set as requested with port echo requested. Edit requested.txt to remove any ports that were not installed and repeat this step. Warning: if a port in requested.txt was not installed in the previous step, the iterative setrequested will terminate, leaving some ports still marked as not-requested. Xargs sudo port setrequested < requested.txt If you saved the list of requested ports, you can now restore the requested flags for your newly installed ports to their former states. Note: ports that are not available on your new platform will be skipped, with only a warning message. (If you installed MacPorts from source and used a custom prefix, then you'll need to use the -p option when you run restore_ports.tcl see.
#MACPORTS ORG DOWNLOAD#
#MACPORTS ORG UPDATE#
If your nf (typically at /opt/local/etc/macports/nf) contains uncommented settings for universal_archs or build_arch, you will likely want to update them, since newer OS versions may support different CPU architectures. To reinstall, simply install the base MacPorts system Recent versions of macOS have a bug that prevents them from automatically updating the command line tools, so if the preceding command says they're already installed, they may not be up to date and you may need to update manually by following the instructions in ProblemHotlist#reinstall-clt. Install the same version of the command line tools.

Open the Xcode application once after installation and follow any prompts. Install the latest version of Xcode that is compatible with your OS.
#MACPORTS ORG UPGRADE#
Migrating MacPorts after a major operating system upgrade or from one computer to anotherĪ MacPorts installation is designed to work with a particular operating system and a particular hardware architecture.
