I recently changed workstations and went from OSx 10.7.5 to OSX 10.11! Yay!
I have a lot of installation to do. Nuts…. (But worth it!)
I have temporarily mounted my old workstation's hard drive to copy over important files. Since I have a different OS, a different version of XCode (and command line tools), and a different version of MacPorts, I'd rather do a fresh install of all my requested ports rather than semi-blindly copy stuff over from the old drive.
MacPorts has a great Migration guide (link) that shows how to create a list of all installed ports, then reinstall them once software has been upgraded — but that's for upgrading on the same boot drive. My new drive has no installed ports because I just installed MacPorts.
Is there a way to list requested ports on the old hard drive in order to upgrade them on my new drive?
Best Answer
Actually, I think you want the results of
port -qv installed
to restore your installation but I'll show you how to produce both files.Mount the old hard drive and copy this file into a folder in your home folder-
/opt/local/var/macports/registry/registry.db
. Now navigate to that folder.To produce the
requested.txt
file:To produce the
myports.txt
file: