Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#14637 closed enhancement (fixed)

Please add a new action to uninstalll a port and its dependencies

Reported by: ebgssth@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.7.0
Component: base Version: 1.6.0
Keywords: depends Cc:
Port:

Description

I'd like to have a port action which allow me to uninstalll a port and its dependencies.

Please take a look at below. Currently there's no way to uninstall python25 and all py25-ports at once. The new action would, in this case, removes listed py25-ports and its dependencies recursively and finally uninstalll python25.

sudo port uninstall python25
--->  Unable to uninstall python25 2.5.2_1+darwin_7, the following ports depend on it:
--->    py25-numeric
--->    py25-lxml
--->    py25-xml
--->    py25-zlib
--->    py25-hashlib
--->    py25-readline
--->    py25-formencode
--->    py25-sqlobject

Change History (6)

comment:1 Changed 16 years ago by kballard (Lily Ballard)

Resolution: fixed
Status: newclosed

Fixed in r34977. Note that I was unable to test what happens if you have multiple different versions of dependents installed, so that may fail.

comment:2 Changed 16 years ago by ebgssth@…

Resolution: fixed
Status: closedreopened
$ sudo port -v uninstall --recursive python24
--->  Deactivating py-py 0.9.0_0
--->  Uninstalling py-py 0.9.0_0
--->  Uninstall is removing py-py from the port registry.
--->  Deactivating py-readline 2.4.4_0
--->  Uninstalling py-readline 2.4.4_0
--->  Uninstall is removing py-readline from the port registry.
--->  Deactivating py-scientific 2.6.1_0+macosx
--->  Uninstalling py-scientific 2.6.1_0+macosx
--->  Uninstall is removing py-scientific from the port registry.
--->  Deactivating py-numeric 24.2_2+macosx
--->  Uninstalling py-numeric 24.2_2+macosx
--->  Uninstall is removing py-numeric from the port registry.
--->  Deactivating py-sqlobject 0.10.0b4_0
--->  Uninstalling py-sqlobject 0.10.0b4_0
--->  Uninstall is removing py-sqlobject from the port registry.
--->  Deactivating py-formencode 0.7.1_0
--->  Uninstalling py-formencode 0.7.1_0
--->  Uninstall is removing py-formencode from the port registry.
Error: port uninstall failed: Registry error: py-sqlobject not registered as installed.

comment:3 Changed 16 years ago by ebgssth@…

$ ls /opt/local/share/man/man1/port*
/opt/local/share/man/man1/port.1    /opt/local/share/man/man1/port.1.gz

comment:4 Changed 16 years ago by ebgssth@…

port man page issue is unrelated with this. Just ignore it.

comment:5 Changed 16 years ago by kballard (Lily Ballard)

Resolution: fixed
Status: reopenedclosed

Ok, this should be fixed in r35042. Please let me know if it doesn't work.

comment:6 Changed 15 years ago by blb@…

Milestone: MacPorts base enhancementsMacPorts 1.7.0
Note: See TracTickets for help on using tickets.