Migrating to Yosemite---cannot run 'port -qv installed' after OS upgrade

Leo Singer aronnax at macports.org
Sun Oct 19 10:58:59 PDT 2014


I just upgraded my system to Yosemite. Unfortunately, I did not get the list of installed ports and uninstall them before I upgraded the OS. Now it is too late:

$ port -qv installed
Error: Current platform "darwin 14" does not match expected platform "darwin 13"
Error: If you upgraded your OS, please follow the migration instructions: https://trac.macports.org/wiki/Migration
OS platform mismatch
    while executing
"mportinit ui_options global_options global_variations"
Error: /opt/local/bin/port: Failed to initialize MacPorts, OS platform mismatch

Is there any way to trick MacPorts into letting me run 'port installed' and 'sudo port -f uninstall installed' at this point?


P.S. Note that the migration instructions may be clearer if they are organized in chronological order, i.e., the 'port -qv installed', etc. might come before upgrading the OS and reinstalling Xcode.

More information about the macports-users mailing list