### Install cpanminus to Local Perl Source: https://github.com/miyagawa/cpanminus/blob/devel/App-cpanminus/README.md Installs cpanminus to the bin path of a local Perl installation, typically used with tools like perlbrew or plenv. Does not require sudo. ```bash curl -L https://cpanmin.us | perl - App::cpanminus ``` -------------------------------- ### Install cpanminus to System Perl Source: https://github.com/miyagawa/cpanminus/blob/devel/App-cpanminus/README.md Installs cpanminus to your system's bin directory. Requires sudo privileges unless INSTALL_BASE is configured with local::lib. ```bash curl -L https://cpanmin.us | perl - --sudo App::cpanminus ``` -------------------------------- ### Scan Dependencies for Vanilla Installation Source: https://github.com/miyagawa/cpanminus/wiki/Scanning-Dependencies Combine --scandeps with -L to view dependencies for a vanilla Perl installation, showing all non-core dependencies instead of only those you don't have. ```bash cpanm -q --scandeps -L /tmp/perl5 Catalyst ``` -------------------------------- ### Use TestDist::Recommend Source: https://github.com/miyagawa/cpanminus/blob/devel/App-cpanminus/testdist/TestDist-Recommend/README.md Demonstrates how to use the TestDist::Recommend module. ```perl use TestDist::Recommend; ``` -------------------------------- ### Basic Usage of CPAN::Dummy::Test::PP Source: https://github.com/miyagawa/cpanminus/blob/devel/App-cpanminus/testdist/CPAN-Dummy-Test-PP/README.md Demonstrates how to use the CPAN::Dummy::Test::PP module by importing it. ```perl use CPAN::Dummy::Test::PP; ``` -------------------------------- ### Download Standalone Executable Source: https://github.com/miyagawa/cpanminus/blob/devel/App-cpanminus/README.md Downloads the cpanm executable and makes it executable. Ensure to manually update this version as --self-upgrade may not function. ```bash cd ~/bin curl -L https://cpanmin.us/ -o cpanm chmod +x cpanm ``` -------------------------------- ### Use CPAN::Dummy::Test::NonInteractive Source: https://github.com/miyagawa/cpanminus/blob/devel/App-cpanminus/testdist/CPAN-Dummy-Test-NonInteractive/README.md Demonstrates how to use the CPAN::Dummy::Test::NonInteractive module in a Perl script. ```perl use CPAN::Dummy::Test::NonInteractive; ``` -------------------------------- ### Troubleshoot HTTPS Warnings with Curl Source: https://github.com/miyagawa/cpanminus/blob/devel/App-cpanminus/README.md Use the -k option with curl to bypass SSL certificate verification if encountering handshake errors or warnings. This is a workaround for outdated clients or systems needing certificate updates. ```bash curl -k -L https://cpanmin.us | perl - --sudo App::cpanminus ``` -------------------------------- ### Scan Dependencies with cpanm Source: https://github.com/miyagawa/cpanminus/wiki/Scanning-Dependencies Use the --scandeps option to scan and display the dependency graph of a module in the console. This option considers modules already present in your Perl library path. ```bash cpanm --scandeps Foo ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.