To install DB2::db, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DB2::db
CPAN shell
perl -MCPAN -e shell install DB2::db
For more information on module installation, please visit the detailed CPAN module installation guide.