syntax for uninstalling. Can I use a regex?

Joshua Root jmr at
Sun Feb 28 07:12:04 PST 2010

On 2010-3-1 01:42 , David Epstein wrote:
> When I try "sudo port uninstall texlive", the system replies
> Error: port uninstall failed: Registry error: texlive not registered as
> installed.
> Nevertheless there are huge numbers of files in /opt/local with "texlive" as
> part of the path name.
> What is the procedure for finding out the names involving "texlive" which
> ARE registered as installed?

As well as globs like Brandon described, you can use pseudo-portname
selectors which take a regex. See the man page. Example:
port installed name:texlive

> Once I know that, I want to find out how to use a regex to uninstall all of
> them simultaneously.

sudo port uninstall <expression>

Note that you will likely run into this bug at some point:

- Josh

More information about the macports-users mailing list