duplicate listing of ports by `port list installed'
Frank Schima
macsforever2000 at macports.org
Wed Jun 19 08:39:50 PDT 2013
On Jun 19, 2013, at 8:20 AM, j. van den hoff <veedeehjay at googlemail.com> wrote:
>> 3.
>>> is there a way to get rid of the duplicates?
>>>
>>
>> sudo port uninstall inactive
>>
>
> yes, obvious in retrospect... thanks again.
>
> basically, my error was to use `port list installed' instead
> of `port installed'. the confusing thing is that `port list installed'
> shows something like this:
>
>
> ...
> cmake @2.8.10.2 devel/cmake
> cmake @2.8.10.2 devel/cmake
> ...
>
> `list' (after reading the manpage again it's clear...) always reports
> the latest version, so in combination with the pseudo-portname "installed" the
> above output resulted, while `port installed' yields.
>
> cmake @2.8.10_1
> cmake @2.8.10.2_0 (active)
>
> which is the actually relevant information. one modest proposal for
> a fix would be that `port list portname(s)' does something like `uniq(1)'
> on its input list of portnames before reporting (Tcl sure has something like `uniq' included,
> I presume).
File an enhancement ticket in Trac [1] if you want this. Even better would be to supply a patch.
Cheers!
Frank
[1] <https://trac.macports.org/newticket>
More information about the macports-users
mailing list