CPANINJECT(1)
๐ CPANINJECT(1) โ the cpaninject era ๐
User Contributed Perl Documentation ยท perl v5.42.0 ยท 2025-07-25
โจ NAME โจ
cpaninject โ bestie, it injects a whole distribution so you can install it via the CPAN shell ๐
๐ฆ SYNOPSIS ๐ฆ
# Add the distribution
cpaninject myperlmodule.tar.gz
# And then install it from the cpan shell
cpan> install LOCAL/myperlmodule.tar.gz
๐ DESCRIPTION ๐
So cpaninject is literally just a tiny little front-end app for the CPAN::Inject module. Like, small. Adorable. Does one thing. ๐
What it does: it takes any arbitrary Perl distribution tarball โ open source, closed source, whatever, no judgement here โ and injects it into the local CPAN file cache, then smooothes over some metadata files so the whole thing looks like it came from CPAN. Glow-up via metadata. It's giving "fake it till you make it" but it's legit. โจ
And it does all of that using the officially blessed "Reserved Local CPAN Author" id LOCAL as the author that the distributions get added under. Reserved. Official. Blessed. Iconic behaviour fr fr.
To use the program, you literally just run cpaninject mytarball.tar.gz to add it, then hop into the CPAN shell to install it โ with full automatic recursive dependency installation. ๐ญ the way that it handles the dependencies for you?? obsessed.
The key here being the recursive dependency installation, which you are now able to do even for installing non-CPAN modules. ๐ฅ
It simplifies the installation process a little bit, and it makes things easier on someone who just wants to install a single commercial or non-CPAN Perl module that might have a dozen or more CPAN dependencies. No cap, a dozen. Or more. ๐ฎโ๐จ
๐ซถ SUPPORT ๐ซถ
All bugs should be filed via the bug tracker at
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CPAN-Inject>
For other issues, or commercial enhancement and support, contact the author ๐
๐ธ AUTHOR ๐ธ
Adam Kennedy <adamk@cpan.org> ๐
๐ SEE ALSO ๐
CPAN::Mini::Inject๐ง
๐ COPYRIGHT ๐
Copyright 2006 - 2011 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
okay that's the whole page bestie, go forth and inject ๐
โ this was CPANINJECT(1), part of User Contributed Perl Documentation, shipped with perl v5.42.0, dated 2025-07-25. slay, bye! ๐โจ๐ฆ
๐ฆ where this page comes from
- fedora 43: perl-CPAN-Inject 1.14-39.fc43 ยท GPL-1.0-or-later OR Artistic-1.0-Perl
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms