cpan: get module information (version, etc...)

This is a wiki page. Be bold and improve it!

If you have any questions about the content on this page, don't hesitate to open a new ticket and we'll do our best to assist you.

$ sudo cpan
cpan[2]> m Crypt::OpenSSL::AES
Reading '/root/.cpan/Metadata'
  Database was generated on Sun, 17 Sep 2023 10:41:02 GMT
Module id = Crypt::OpenSSL::AES
    CPAN_USERID  TTAR (Tolga Tarhan <cpan@ttar.org>)
    CPAN_VERSION 0.08
    CPAN_FILE    T/TI/TIMLEGGE/Crypt-OpenSSL-AES-0.08.tar.gz
    UPLOAD_DATE  2023-09-16
    INST_FILE    (not installed)

You can search a full name:

cpan[3]> m DateTime::Calendar::FrenchRevolutionary
Module id = DateTime::Calendar::FrenchRevolutionary
    CPAN_VERSION 0.17

Or with a regular expression:

cpan[5]> m /FrenchRevolutionary/
Module id = DateTime::Calendar::FrenchRevolutionary
    CPAN_VERSION 0.17

Or:

# cpan -D Crypt::OpenSSL::AES
Reading '/root/.cpan/Metadata'
  Database was generated on Sun, 17 Sep 2023 10:41:02 GMT
Crypt::OpenSSL::AES
-------------------------------------------------------------------------
        (no description)
        T/TI/TIMLEGGE/Crypt-OpenSSL-AES-0.08.tar.gz
        (no installation file)
        Installed: not installed
        CPAN:      0.08  Not up to date
        Tolga Tarhan (TTAR)
        cpan@ttar.org