Ticket #18984 (closed enhancement: fixed)
uninstall wildcard *
| Reported by: | cerieljacobs@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | MacPorts 1.8.0 |
| Component: | base | Version: | 1.8.0 |
| Keywords: | uninstall wildcard * | Cc: | raimue@…, jmr@… |
| Port: |
Description
With a port uninstall command, it would be nice if a wildcard could be specified, like:
port uninstall xorg-*
Which would uninstall all installed ports starting with xorg-
Change History
comment:3 Changed 4 years ago by raimue@…
- Cc raimue@… added
What kind of errors do you see when using port uninstall xorg-*?
comment:4 Changed 4 years ago by cerieljacobs@…
$ sudo /opt/local/bin/port uninstall xorg* Error: port uninstall failed: Registry error: xorg not registered as installed.
comment:5 Changed 4 years ago by cerieljacobs@…
$ sudo /opt/local/bin/port uninstall xorg* Error: port uninstall failed: Registry error: xorg not registered as installed.
comment:6 Changed 4 years ago by jmr@…
You probably just need to escape the asterisk so your shell doesn't eat it: sudo port uninstall xorg\*
Note: See
TracTickets for help on using
tickets.


There is already a way to accomplish this, though not as obvious ;).
port uninstall installed and name:xorg-