Opened 11 years ago

Last modified 3 months ago

#42207 assigned enhancement

uninstalling macports could be easier

Reported by: dave@… Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone: MacPorts Future
Component: base Version:
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), umeshksingla (Umesh Singla), cooljeanius (Eric Gallager)
Port:

Description

Instead of getting the user to know about and to follow the directions here, MacPorts could do all of that itself when the user issues a port command, such as

port uninstall macports

or

port selfuninstall

Change History (10)

comment:1 Changed 11 years ago by mf2k (Frank Schima)

Component: portsbase
Type: defectenhancement
Version: 2.2.1

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Uninstalling MacPorts could be easier. On the other hand, how easy do we really want it to be to uninstall everything, which is a drastic and irreversible step and also something that won't be done regularly?

And a couple problems come to mind with this proposal:

  1. Sometimes, MacPorts doesn't work anymore. For example, if you had MacPorts installed on a PowerPC Mac, and then migrated that system to an Intel Mac running a newer version of OS X that does not include a PowerPC emulator. In that case, you cannot run port anything and need to uninstall manually.
  2. MacPorts is not interactive, but you'd want to ask the user "Are you sure?"

We could offer a separate shell script to uninstall.

The proposed self-management feature may address this concern.

comment:3 Changed 7 years ago by neverpanic (Clemens Lang)

Milestone: MacPorts 2.6.0
Owner: changed from macports-tickets@… to neverpanic
Status: newassigned

We can ship the command from the guide in a shell script, e.g. in $prefix/libexec/macports/uninstall to simplify uninstalling.

This would also have the advantage of being able to remove the correct $applications_dir for the installation that is being removed.

comment:4 Changed 7 years ago by umeshksingla (Umesh Singla)

Cc: umeshksingla added

comment:5 Changed 7 years ago by raimue (Rainer Müller)

Has duplicate #12799.

comment:6 Changed 7 years ago by mojca (Mojca Miklavec)

Milestone: MacPorts 2.6.0MacPorts 2.7.0

comment:7 Changed 3 years ago by jmroot (Joshua Root)

Milestone: MacPorts 2.7.0MacPorts Future

Ticket retargeted after milestone closed

comment:8 in reply to:  2 Changed 3 months ago by cooljeanius (Eric Gallager)

Replying to ryandesign:

  1. MacPorts is not interactive, but you'd want to ask the user "Are you sure?"

This has changed; interactivity has since been added.

comment:9 Changed 3 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:10 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)

True, but reason 1 that I mentioned above still applies so it's probably safer for there to be a separate standalone uninstaller script rather than trying to integrate it into the port executable.

Version 0, edited 3 months ago by ryandesign (Ryan Carsten Schmidt) (next)
Note: See TracTickets for help on using tickets.