How to know Magento version via the command line?

To find out the version of Magento installed on your system via the command line, you can use the following command in the Magento root directory:

php bin/magento --version

or

grep -A6 'static function getVersionInfo' app/Mage.php

From a browser you may try to reach the following page:

https://yourwebsite/magento_version

This will display the version number of Magento installed on your system.… Read the rest

How to know if perl module is installed and its version

Run in your command line:

perldoc -l LWP::UserAgent

/usr/local/share/perl5/LWP/UserAgent.pm

perl -e 'foreach (@INC) { print `find $_ -type f -name "*.pm"`; }' |grep UserAgent

/usr/local/share/perl5/LWP/UserAgent.pm
/usr/share/perl5/CPAN/LWP/UserAgent.pm
./.cpanm/work/1589816008.10374/CPAN-2.27/blib/lib/CPAN/LWP/UserAgent.pm
./.cpanm/work/1589816008.10374/CPAN-2.27/lib/CPAN/LWP/UserAgent.pm

cpan -i LWP::UserAgent

Reading ‘/home/.cpan/Metadata’
Database was generated on Fri, 10 Apr 2020 20:29:02 GMT
CPAN: Module::CoreList loaded ok (v2.76_02)
LWP::UserAgent is up to date (6.46).

Read the rest