cpansearch is written in C, provides a quick interface for searching cpan modules.
- ncurses UI.
- fast.
- regular expression.
- parallel module installation.
- curl
- glib
- ncurses
- menu
$ wget http://github.com/c9s/cpansearch/raw/master/binary/cpans-linux-i386 -O cpans
$ chmod +x cpans
$ cp cpans ~/bin/
$ sudo apt-get install libcurl4-openssl-dev libglib2.0-dev libncurses-dev
$ make install
install from macport:
$ sudo port install curl glib2
$ perl Makefile.PL
$ make install
--fetch [uri] | -f [uri]
initialize a source list from a specified uri:
--update | -u
update source list data.
-i
ignore case
-v
verbose
-vv
very verbose
-vvv
very verbose with long module url.
$ cpans --fetch http://cpan.nctu.edu.tw/
# this will autodetect local mirror from .minicpanrc
$ cpans -f
# the same
$ cpans --fetch
$ cpans -u
$ cpans --update
Launch ncurses ui with search result:
$ cpans --nc Any::
Supports posix extended regular expression:
$ cpans App::
$ cpans "^Any"
Show names only:
$ cpans -n App::
Pipe to cpanminus to install:
$ cpans -n App:: | cpanm
Show full url:
$ cpans -nl App::
$ cpans "Server$"
$ cpans [A-C][A-C]
# to ignore case
$ cpans -i server
c9s cornelius.howl@gmail.com Shellingford
Mattn
* unix-like
* win32 (thanks to @mattn)
search installed packages.
search out-dated packages.
search and install.
$ cpans -i AnyEvent::HTTP # call cpanminus to install the only matched one.
open browser to search
$ cpans -w AnyEvent
open document in browser
$ cpans -d AnyEvent