CPANDB(1)
π NAME π
cpandb β interface to CPAN::SQLite, bestie. That's the whole name vibe. β¨
β¨ VERSION β¨
This one is version 0.220 π
πΈ DESCRIPTION πΈ
okay so listen: this script is literally an interface to the routines of CPAN::SQLite for setting up, maintaining, and searching a DBD::SQLite database of CPAN. Available options can be grouped into three categories. Slay.
π«Ά Common options π«Ά
These options are common to both setting up and maintaining the database and performing queries on it. The shared besties are:
--CPAN '/path/to/CPAN'β this tells it where the index files are stored. It can be a local CPAN mirror, and you can spot that because there's aMIRRORED.BYfile beneath this directory. Or it can be a local directory where you store these files from a remote CPAN mirror. In that second case, the index files are fetched from a remote CPAN mirror using the same list thatCPAN.pmuses, if this is configured, and they're updated if they're more than one day old. IfCPANis not given, it defaults tocpan_homeofCPAN::, if this is configured, with the sources being found underkeep_source_where. A fatal error results if such a directory isn't found. Updates to these index files are assumed here to be handled byCPAN.pm. π«Ά--db_name 'cpan-sqlite'β this is the name of the database thatDBD::SQLitewill use. If not given, this defaults tocpandb-sqlite. Yes, bestie, those are the exact strings. π--db_dir '/path/to/db/dir'β this specifies the path to where the database file is found. If not given, it defaults to thecpan_homedirectory ofCPAN.pm, if present, or to the directory in which the script was invoked. π
π₯ Indexing options π₯
These options are used for setting up and maintaining the database. The lineup includes:
--setupβ this specifies that the database is to be created and populated from the CPAN indices; any existing database will be overwritten. π¨
π¨ warning: --setup overwrites any existing database. That is not a drill, bestie. π
--updateβ this is used to update an existing database, which must have first been created with thesetupoption. No skipping steps. π--reindex 'dist_name'β this specifies that the CPAN distributiondist_nameis to be reindexed. Iconic. β¨
π¦ Querying options π¦
These options are used to query the database. Available options are:
--module Mod::Nameβ this provides information on the specified module name. π--dist Dist-Nameβ this provides information on the specified distribution name. π--cpanid CPANIDβ this provides information on the specified CPAN author id. π¦
All search terms are assumed to be exact matches in a case-insensitive manner. Periodt.
There's no limit on maximum number of records. If you need to adjust the number because you get too many results, set the CPAN_SQLITE_MAX_RESULTS environment variable. That's the whole tip, fr fr. π
π SEE ALSO π
CPAN::SQLite β go read that, bestie. π
π cute sign-off: this page is fromperl v5.42.2, dated2026-02-15π«Ά
π¦ where this page comes from
- alpine 3.24: perl-cpan-sqlite-doc 0.220-r1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms