#44493: Support globs in port versions ------------------------------+-------------------------------- Reporter: ora.et.labora@… | Owner: macports-tickets@… Type: enhancement | Status: reopened Priority: Normal | Milestone: Component: base | Version: 2.3.1 Resolution: | Keywords: Port: | ------------------------------+-------------------------------- Comment (by larryv@…): Replying to [comment:5 mf2k@…]:
This makes no sense to me. You can only uninstall installed ports. One would never type {{{port uninstall installed and}}} anything. In your sample code, simply type:
{{{ port uninstall gcc45* }}}
That will uninstall all installed versions of gcc45.
This wouldn’t work. That command would expand to `port uninstall gcc45` (since there is only one port name that matches that glob) and would throw an error if there were more than one `gcc45` installed. The `installed and FOO` expression is necessary because only the `installed` pseudo-portname breaks out the separate installed ports: {{{ % sudo port uninstall scala2.11 ---> The following versions of scala2.11 are currently installed: ---> scala2.11 @2.11.1_0 ---> scala2.11 @2.11.2_0 (active) Error: port uninstall failed: Registry error: Please specify the full version as recorded in the port registry. % sudo port uninstall installed and scala2.11 ---> Uninstalling scala2.11 @2.11.1_0 ---> Cleaning scala2.11 ---> Deactivating scala2.11 @2.11.2_0 ---> Cleaning scala2.11 ---> Uninstalling scala2.11 @2.11.2_0 ---> Cleaning scala2.11 % }}} -- Ticket URL: <https://trac.macports.org/ticket/44493#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X