How do I remove MacPorts on an "unsupported OS" i.e. El Capitan Public beta?

Ajay picture Ajay · Jul 17, 2015 · Viewed 13.9k times · Source

The MacPorts installation that I had on Yosemite doesn't work on the El Capitan since it isn't supported yet. I want to remove the Port installation here but I'm not able to run any of the Port commands. Does anyone have an idea how to clean it up?

On running any port command, I get the following error:

Error: Current platform "darwin 15" does not match expected platform "darwin 14"
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

Answer

Michel Soares Pintor picture Michel Soares Pintor · Oct 1, 2015

This solution worked for me, without remove it:

Source