Install Perl PAR::Packer

Online Installation

Install Necessary RPMs

1
2
3
4
[root]# yum install perl-ExtUtils-Embed
[root]# yum install perl-Crypt-OpenSSL*
[root]# yum install openssl*
[root]# yum install perl-CPAN

Install Required Perl Modules

1
2
3
[root]# perl -MCPAN -e 'install Filter::Crypto'
[root]# perl -MCPAN -e 'install ExtUtils::CBuilder'
[root]# perl -MCPAN -e 'install PAR::Packer'

It will might report Errors when installing PAR::Packer. You must install the missing Perl package prior to installation of PAR::Packer.

Offline Installation

If your Linux system happens to be unable to connect internet, the Perl packages can not be installed online like above commands. You would have to download the package sources first from https://metacpan.org/. And then upload to your Linux system and manually install the package with following commands.

1
2
3
4
5
[user]% tar zxvf perl_package_name.tar.gz
[user]% cd perl_package_name
[user]% perl Makefile.PL
[user]% make
[user]% sudo make install

The installed Perl packages can be found in -
/usr/share/perl5/ or
/usr/local/share/perl5/

Usage of pp

/usr/local/bin/pp -f Crypto -F Crypto -M Filter::Crypto::Decrypt perl_script_entry -o perl_script_entry.exe