Coder Social home page Coder Social logo

cpansearch's Introduction

cpansearch

cpansearch is written in C, provides a quick interface for searching cpan modules.

MAIN FEATURES

  • ncurses UI.
  • fast.
  • regular expression.
  • parallel module installation.

TO INSTALL

REQUIREMENT

  • curl
  • glib
  • ncurses
  • menu

BINARY

$ wget http://github.com/c9s/cpansearch/raw/master/binary/cpans-linux-i386 -O cpans
$ chmod +x cpans
$ cp cpans ~/bin/

BUILD - For debian-based system:

$ sudo apt-get install libcurl4-openssl-dev libglib2.0-dev libncurses-dev
$ make install

BUILD - For mac users:

install from macport:

$ sudo port install curl glib2
$ perl Makefile.PL
$ make install

install with brew:

$ export PKG_CONFIG_PATH=/usr/local/Library/ENV/pkgconfig/{your_osx_version}
$ brew install glib
$ make
$ make install

USAGE

--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.

EXAMPLE

To initialize source list datafile.

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

# this will autodetect local mirror from .minicpanrc
$ cpans -f

# the same
$ cpans --fetch

To update list

$ cpans -u

$ cpans --update

To search modules

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

AUTHORS

c9s [email protected] Shellingford

Contributors

Mattn

PLATFORM

* unix-like
* win32   (thanks to @mattn)

TODO

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

cpansearch's People

Contributors

alecchen avatar c9s avatar ironcamel avatar mattn avatar shelling avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.