[MacPorts] #44493: Support wildcard on versions

MacPorts noreply at macports.org
Thu Jul 31 03:30:45 PDT 2014


#44493: Support wildcard on versions
------------------------------+--------------------------------
  Reporter:  ora.et.labora@…  |      Owner:  macports-tickets@…
      Type:  enhancement      |     Status:  closed
  Priority:  Normal           |  Milestone:
 Component:  base             |    Version:  2.3.1
Resolution:  worksforme       |   Keywords:
      Port:                   |
------------------------------+--------------------------------

Comment (by mf2k@…):

 Replying to [comment:4 ora.et.labora@…]:

 > port install gcc at 4.5.4_8

 Versions cannot be used with the install command. Macports only installs
 the latest version of any port.

 > Replying to [comment:2 mf2k@…]:
 > > Also, this format is what I use:
 > >
 > > {{{
 > > port installed gcc*
 > > }}}
 >
 > You probably meant
 > {{{
 > port _some_action_ installed gcc*
 > }}}

 No, I meant what I typed.

 >
 > while I wrote
 > {{{
 > $ port uninstall installed and gcc45\*
 > }}}
 >
 > I used the "$" sign to indicate that the command can be typed like this
 into the (shell) terminal.
 >
 > Further, I used __and__ //expressis verbis// to combine the two boolean
 expressions __installed__ and __gcc45*__. I have no clue my those logical
 operators are not mentioned in the [https://guide.macports.org guide],
 `man port` seems to be the authorative source by now.

 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.

 To address your request. You are correct that wildcards cannot be used on
 specific versions. Honestly, that hardly seems useful. One can always
 uninstall singular versions by typing the complete name as reported by the
 {{{port installed}}} command e.g.

 {{{
 port uninstall gcc45 @4.5.4_8
 }}}

 or all versions as I specified above. I'm not seeing In what situation
 your request is useful?

-- 
Ticket URL: <https://trac.macports.org/ticket/44493#comment:5>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list