Install Perl 5 on Centos 6.3

How to Install Perl 5 on Centos 6.3

 

1. Install perl by yum command

[root@localhost ~]# yum install perl
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos-hcm.viettelidc.com.vn
* epel: kartolo.sby.datautama.net.id
* extras: centos-hcm.viettelidc.com.vn
* updates: centos-hcm.viettelidc.com.vn
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package perl.x86_64 4:5.10.1-127.el6 will be installed
–> Processing Dependency: perl-libs = 4:5.10.1-127.el6 for package: 4:perl-5.10.1-127.el6.x86_64
–> Processing Dependency: perl-libs for package: 4:perl-5.10.1-127.el6.x86_64
–> Processing Dependency: perl(version) for package: 4:perl-5.10.1-127.el6.x86_64
–> Processing Dependency: perl(Pod::Simple) for package: 4:perl-5.10.1-127.el6.x86_64
–> Processing Dependency: perl(Module::Pluggable) for package: 4:perl-5.10.1-127.el6.x86_64
–> Processing Dependency: libperl.so()(64bit) for package: 4:perl-5.10.1-127.el6.x86_64
–> Running transaction check
—> Package perl-Module-Pluggable.x86_64 1:3.90-127.el6 will be installed
—> Package perl-Pod-Simple.x86_64 1:3.13-127.el6 will be installed
–> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.13-127.el6.x86_64
—> Package perl-libs.x86_64 4:5.10.1-127.el6 will be installed
—> Package perl-version.x86_64 3:0.77-127.el6 will be installed
–> Running transaction check
—> Package perl-Pod-Escapes.x86_64 1:1.04-127.el6 will be installed
–> Finished Dependency ResolutionDependencies Resolved=====================================================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================================================
Installing:
perl x86_64 4:5.10.1-127.el6 base 10 M
Installing for dependencies:
perl-Module-Pluggable x86_64 1:3.90-127.el6 base 38 k
perl-Pod-Escapes x86_64 1:1.04-127.el6 base 30 k
perl-Pod-Simple x86_64 1:3.13-127.el6 base 210 k
perl-libs x86_64 4:5.10.1-127.el6 base 576 k
perl-version x86_64 3:0.77-127.el6 base 49 kTransaction Summary
=====================================================================================================================================================================================================
Install 6 Package(s)Total download size: 11 M
Installed size: 36 MIs this ok [y/N]: y
Downloading Packages:
(1/6): perl-5.10.1-127.el6.x86_64.rpm | 10 MB 01:14
(2/6): perl-Module-Pluggable-3.90-127.el6.x86_64.rpm | 38 kB 00:00
(3/6): perl-Pod-Escapes-1.04-127.el6.x86_64.rpm | 30 kB 00:00
(4/6): perl-Pod-Simple-3.13-127.el6.x86_64.rpm | 210 kB 00:01
(5/6): perl-libs-5.10.1-127.el6.x86_64.rpm | 576 kB 00:03
(6/6): perl-version-0.77-127.el6.x86_64.rpm | 49 kB 00:00
—————————————————————————————————————————————————————————————————–
Total 138 kB/s | 11 MB 01:22
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 1:perl-Pod-Escapes-1.04-127.el6.x86_64 1/6
Installing : 4:perl-libs-5.10.1-127.el6.x86_64 2/6
Installing : 1:perl-Pod-Simple-3.13-127.el6.x86_64 3/6
Installing : 3:perl-version-0.77-127.el6.x86_64 4/6
Installing : 1:perl-Module-Pluggable-3.90-127.el6.x86_64 5/6
Installing : 4:perl-5.10.1-127.el6.x86_64 6/6
Verifying : 1:perl-Module-Pluggable-3.90-127.el6.x86_64 1/6
Verifying : 1:perl-Pod-Escapes-1.04-127.el6.x86_64 2/6
Verifying : 4:perl-libs-5.10.1-127.el6.x86_64 3/6
Verifying : 4:perl-5.10.1-127.el6.x86_64 4/6
Verifying : 1:perl-Pod-Simple-3.13-127.el6.x86_64 5/6
Verifying : 3:perl-version-0.77-127.el6.x86_64 6/6Installed:
perl.x86_64 4:5.10.1-127.el6Dependency Installed:
perl-Module-Pluggable.x86_64 1:3.90-127.el6 perl-Pod-Escapes.x86_64 1:1.04-127.el6 perl-Pod-Simple.x86_64 1:3.13-127.el6 perl-libs.x86_64 4:5.10.1-127.el6 perl-version.x86_64 3:0.77-127.el6

Complete!
[root@localhost ~]#

2. Check perl version after installing

[root@localhost ~]# perl -v
This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi

Copyright 1987-2009, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using “man perl” or “perldoc perl”. If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

[root@localhost ~]#

That’s all. Thanks for using IThelpblog.com.

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>