I am trying to uninstall MacPorts on my Mac and I have found the protocol to do so. However, I am getting an error:
user:~ femto-13$ sudo port -fp uninstall --follow-dependents installed
Password:
Error: Current platform "darwin 18" does not match expected platform "darwin 17"
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
the proposed solution was to install a new version of ports and erase the old one
user:~ user-13$ sudo port -fp uninstall --follow-dependents installed
Password:
Error: No ports matched the given expression
And now the original recommended command doesn't even work.
Does anyone know what else can be done to get rid of MacPorts?