Is it possible to uninstall MacPorts without doing a migration?
Clemens Lang
cal at macports.org
Sun Jun 3 20:34:23 UTC 2018
Hi,
On Sun, Jun 03, 2018 at 08:31:32PM +0100, Chris Jones wrote:
> > On 3 Jun 2018, at 8:23 pm, Evan Biederstedt <evan.biederstedt at gmail.com> wrote:
> >
> > I'm currently using MacOS High Sierra 10.13.5. I would like to uninstall MacPorts on my macbook.
> >
> > Based on the instructions here:
> >
> > https://guide.macports.org/chunked/installing.macports.uninstalling.html
> >
> > I should do the following
> >
> > ```
> > $ sudo port -fp uninstall installed
> > ```
> >
> > Here is the response I see:
> >
> > ```
> > Error: Current platform "darwin 17" does not match expected platform "darwin 16"
> > 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
> > ```
> >
> > Do I really need to do a migration first before uninstalling? Is there a way to install directly now?
>
> The link you post above gives a second method of removing all traces
> of macports, just using an ‘rm -f’ command. Just do that ....
We do not recommend this method if other options are available. It's
rate, but some ports install files in non-standard locations that are
not covered by this rm -rf command.
The best way to uninstall MacPorts without doing the full migration is
only doing step 3 of the migration instructions[1], i.e. just re-install
MacPorts base and then follow the normal uninstall instructions from the
guide. That'll take just a few minutes.
[1] https://trac.macports.org/wiki/Migration
More information about the macports-users
mailing list