2010年8月23日星期一

cpansearch (cpans)

cpansearch is written in C, cpansearch is going to add some ncurses ui, just like debian aptitude.

http://github.com/c9s/cpansearch

cpansearch usage:

init source data file:

$ cpans -f http://cpan.nctu.edu.tw/

update source data file:

$ cpans -u

search module

$ cpans Any::

to search (ignore case)

$ cpans -i ::server

show module names only:

$ cpans -n Any::

pipe to cpanminus to install modules:

$ cpans -n Any:: | cpanm

2 則留言:

  1. Nice but I could not install it on Strawberry Perl as it told me

    Checking library...
    'pkg-config' is not recognized as an internal or external command,
    operable program or batch file.
    Died at Makefile.PL line 15.

    Will you be able to make it available on Windows as well?

    回覆刪除
  2. Hi!

    there is a Makefile for windows platform , written by @mattn.

    you can download the source from github. then run makefile.w32

    回覆刪除