Deprecating port list

Rainer Müller raimue at macports.org
Thu Mar 12 10:24:55 PDT 2009


Andre Stechert wrote:
> port list | wc -l
>     answers the question "how many ports does macports have nowadays?
> we catching up to freebsd yet?"

port echo all | wc -l
port search '*' | tail -1

> port list | grep ...
>     answers the question "is /re/ a port?" without requiring me to
> understand port search's syntax and/or limitations compared to regular
> old grep.
> 
> port list | awk ...
>     allows me to perform arbitrary shell operations against the entire
> set of possible ports for cleanup, statistics, or whatever.

port echo all | grep ...
port echo all | awk ...

Maybe it would be useful to make list an alias to echo?

A command like
  port info --line --name --version ... all
allows even more by selecting the field you want to view.

Rainer


More information about the macports-dev mailing list