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