sudo port -f uninstall lame: DOES NOT UNINSTALL DEPENDENCIES

Emmanuel Hainry milosh at macports.org
Thu Dec 18 01:06:12 PST 2008


Citando Scott :
> The `-f' option does not work properly -- it is supposed to kill
> dependencies, too.

No, it is not.
 
> Is `-f' supposed to actually work?

Yes. It works. But it does not do what you expected.

According to the man page -f is for force mode. When uninstalling a port
that has dependents (not dependencies), port will stop if you don't use
the -f switch. If you force the uninstall, it will render the dependents
unworking, but it will uninstall however.

% port uninstall ncurses
--->  Unable to uninstall ncurses 5.6_0, the following ports depend on
it:
--->  	gettext
--->  	cmus
Error: port uninstall failed: Please uninstall the ports that depend on
ncurses first.
% port -f uninstall ncurses
--->  Unable to uninstall ncurses 5.6_0, the following ports depend on
it:
--->  	gettext
--->  	cmus
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating ncurses @5.6_0
--->  Uninstalling ncurses @5.6_0


And I no longer have ncurses. (and cmus does not work anymore as I
predicted).

Emmanuel


More information about the macports-users mailing list