Perl upgrade from cpan shell

In this article I am going to show you how you can upgrade perl in your system.So here we go; first of all determine the current perl version installed like this:

bhaskar@bhaskar-laptop_12:14:32_Sat Oct 09:~> sudo /usr/bin/perl -v

This is perl, v5.10.0 built for i486-linux-gnu-thread-multi

Copyright 1987-2007, 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.

If you are really interested to know about why cpan is better then other methods then please look here.And if you want to install perl modules as non-root user then please glean over here . Now let me get into the cpan shell like below;

bhaskar@bhaskar-laptop_12:16:56_Sat Oct 09:~> sudo cpan
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.9205)
ReadLine support available (maybe install Bundle::CPAN or Bundle::CPANxxl?)

cpan[1]>

Ok lets update the perl thing from this shell like it:


cpan[1]> upgrade
CPAN: Storable loaded ok (v2.18)
CPAN: LWP::UserAgent loaded ok (v5.813)
CPAN: Time::HiRes loaded ok (v1.9711)

I would like to connect to one of the following sites to get 'authors/01mailrc.txt.gz':

http://www.perl.org/CPAN/
ftp://ftp.perl.org/pub/CPAN/

Is it OK to try to connect to the Internet? [yes]
Fetching with LWP:
http://www.perl.org/CPAN/authors/01mailrc.txt.gz
Going to read /home/bhaskar/.cpan/sources/authors/01mailrc.txt.gz
............................................................................DONE
Fetching with LWP:
http://www.perl.org/CPAN/modules/02packages.details.txt.gz
Going to read /home/bhaskar/.cpan/sources/modules/02packages.details.txt.gz
Database was generated on Sat, 09 Oct 2010 06:32:21 GMT
...............
New CPAN.pm version (v1.9402) available.
[Currently running version is v1.9205]
You might want to try
install CPAN
reload cpan
to both upgrade CPAN.pm and run the new version without leaving
the current session.

.............................................................DONE
Fetching with LWP:
http://www.perl.org/CPAN/modules/03modlist.data.gz
............................................................................DONE
Going to write /home/bhaskar/.cpan/Metadata

Package namespace installed latest in CPAN file
Archive::Extract 0.24 0.44 BINGOS/Archive-Extract-0.44.tar.gz
Archive::Tar 1.38 1.68 BINGOS/Archive-Tar-1.68.tar.gz
Attribute::Handlers 0.79 0.88 SMUELLER/Attribute-Handlers-0.88.tar.gz
AutoLoader 5.63 5.70 SMUELLER/AutoLoader-5.70.tar.gz
B 1.17 1.23 JESSE/perl-5.12.2.tar.gz
B::Debug 1.05 1.16 RURBAN/B-Debug-1.16.tar.gz
B::Lint 1.09 1.12 FLORA/B-Lint-1.12.tar.gz
CGI 3.29 3.49 LDS/CGI.pm-3.49.tar.gz
CPAN 1.9205 1.9402 ANDK/CPAN-1.9402.tar.gz
CPANPLUS 0.84 0.9007 BINGOS/CPANPLUS-0.9007.tar.gz
CPANPLUS::Dist::Build 0.06_02 0.48 BINGOS/CPANPLUS-Dist-Build-0.48.tar.gz
Cairo 1.060 1.061 TSCH/Cairo-1.061.tar.gz
Class::ISA 0.33 0.36 SMUELLER/Class-ISA-0.36.tar.gz
Compress::Raw::Zlib 2.012 2.030 PMQS/Compress-Raw-Zlib-2.030.tar.gz
Compress::Zlib 2.012 2.030 PMQS/IO-Compress-2.030.tar.gz
Curses 1.23 1.28 GIRAFFED/Curses-1.28.tgz
Curses::UI 0.9605 0.9607 MDXI/Curses-UI-0.9607.tar.gz
Cwd 3.2501 3.33 SMUELLER/PathTools-3.33.tar.gz
DBD::DBM 0.03 0.06 TIMB/DBI-1.615.tar.gz
DBD::mysql 4.007 4.017 CAPTTOFU/DBD-mysql-4.017.tar.gz
DB_File 1.816_1 1.820 PMQS/DB_File-1.820.tar.gz
Data::Dumper 2.121_14 2.128 SMUELLER/Data-Dumper-2.128.tar.gz
Date::Format 2.22 2.24 GBARR/TimeDate-1.20.tar.gz
Date::Manip 5.54 6.12 SBECK/Date-Manip-6.12.tar.gz
Devel::PPPort 3.13 3.19 MHX/Devel-PPPort-3.19.tar.gz
Digest 1.15 1.16 GAAS/Digest-1.16.tar.gz
Digest::MD5 2.36_01 2.51 GAAS/Digest-MD5-2.51.tar.gz
Digest::SHA 5.45 5.48 MSHELOR/Digest-SHA-5.48.tar.gz
Encode 2.23 2.40 DANKOGAI/Encode-2.40.tar.gz
Exporter 5.62 5.63 FERREIRA/Exporter-5.63.tar.gz
ExtUtils::CBuilder 0.21 0.2703 DAGOLDEN/ExtUtils-CBuilder-0.2703.tar.gz
ExtUtils::Command 1.13 1.16 RKOBES/ExtUtils-Command-1.16.tar.gz
ExtUtils::Command::MM 6.42 6.56 MSCHWERN/ExtUtils-MakeMaker-6.56.tar.gz
ExtUtils::Install 1.44 1.54 YVES/ExtUtils-Install-1.54.tar.gz
ExtUtils::Manifest 1.51_01 1.58 RKOBES/ExtUtils-Manifest-1.58.tar.gz
ExtUtils::ParseXS 2.18_02 2.2206 DAGOLDEN/ExtUtils-ParseXS-2.2206.tar.gz
Fatal 1.05 2.10 PJF/autodie-2.10.tar.gz
File::Fetch 0.14 0.24 BINGOS/File-Fetch-0.24.tar.gz
File::Listing 5.810 5.837 GAAS/libwww-perl-5.837.tar.gz
File::Path 2.04 2.08 DLAND/File-Path-2.08.tar.gz
File::Temp 0.18 0.22 TJENNESS/File-Temp-0.22.tar.gz
Filter::Simple 0.82 0.85 SMUELLER/Filter-Simple-0.85.tar.gz
Filter::Util::Call 1.07 1.08 PMQS/Filter-1.37.tar.gz
FreezeThaw 0.43 0.5001 ILYAZ/modules/FreezeThaw-0.5001.tar.gz
Getopt::Long 2.37 2.38 JV/Getopt-Long-2.38.tar.gz
Glib 1.190 1.223 TSCH/Glib-1.223.tar.gz
Gnome2::VFS 1.080 1.081 TSCH/Gnome2-VFS-1.081.tar.gz
Gtk2 1.190 1.222 TSCH/Gtk2-1.222.tar.gz
HTML::Element 3.23 4.0 JFEARN/HTML-Tree-4.0.tar.gz
HTML::Entities 1.35 3.68 GAAS/HTML-Parser-3.68.tar.gz
IO 1.23_01 1.25 GBARR/IO-1.25.tar.gz
IO::Multiplex 1.09 1.10 BBB/IO-Multiplex-1.10.tar.gz
IO::Zlib 1.07 1.10 TOMHUGHES/IO-Zlib-1.10.tar.gz
IPC::Cmd 0.40_1 0.60 BINGOS/IPC-Cmd-0.60.tar.gz
IPC::Msg 1.02 2.03 MHX/IPC-SysV-2.03.tar.gz
List::Util 1.19 1.23 GBARR/Scalar-List-Utils-1.23.tar.gz
Locale::Constants 2.07 3.14 SBECK/Locale-Codes-3.14.tar.gz
Locale::Maketext 1.12 1.13 FERREIRA/Locale-Maketext-1.13.tar.gz
Locale::Maketext::Simple 0.18 0.21 JESSE/Locale-Maketext-Simple-0.21.tar.gz
Log::Message 0.01 0.02 KANE/Log-Message-0.02.tar.gz
Log::Message::Simple 0.04 0.06 BINGOS/Log-Message-Simple-0.06.tar.gz
MIME::Base64 3.07_01 3.09 GAAS/MIME-Base64-3.09.tar.gz
MLDBM 2.01 2.04 CHORNY/MLDBM-2.04.tar.gz
Mail::Address 2.03 2.07 MARKOV/MailTools-2.07.tar.gz
Math::BigFloat 1.59 1.63 FLORA/Math-BigInt-1.96.tar.gz
Math::BigInt::FastCalc 0.16 0.22 FLORA/Math-BigInt-FastCalc-0.22.tar.gz
Math::BigRat 0.21 0.26 FLORA/Math-BigRat-0.26.tar.gz
Math::Complex 1.37 1.56 JHI/Math-Complex-1.56.tar.gz
Module::Build 0.2808_01 0.3607 DAGOLDEN/Module-Build-0.3607.tar.gz
Module::CoreList 2.13 2.39 BINGOS/Module-CoreList-2.39.tar.gz
Module::Load 0.12 0.18 BINGOS/Module-Load-0.18.tar.gz
Module::Load::Conditional 0.22 0.38 BINGOS/Module-Load-Conditional-0.38.tar.gz
Module::Loaded 0.01 0.06 BINGOS/Module-Loaded-0.06.tar.gz
Module::Pluggable 3.6 3.9 SIMONW/Module-Pluggable-3.9.tar.gz
NEXT 0.60_01 0.65 FLORA/NEXT-0.65.tar.gz
Net::CIDR 0.11 0.14 MRSAM/testing/Net-CIDR-0.14.tar.gz
Net::Daemon 0.38 0.43 MNOONING/Net-Daemon/Net-Daemon-0.43.tar.gz
Net::Ping 2.33 2.36 SMPETERS/Net-Ping-2.36.tar.gz
Net::SNMP v5.2.0 v6.0.1 DTOWN/Net-SNMP-v6.0.1.tar.gz
Net::Server 0.97 0.99 RHANDOM/Net-Server-0.99.tar.gz
Object::Accessor 0.32 0.36 BINGOS/Object-Accessor-0.36.tar.gz
Package::Constants 0.01 0.02 KANE/Package-Constants-0.02.tar.gz
Pod::Checker 1.43_01 1.45 MAREKR/Pod-Parser-1.38.tar.gz
Pod::Man 2.18_01 2.23 RRA/podlators-2.3.1.tar.gz
Pod::Perldoc 3.14_02 3.15 FERREIRA/Pod-Perldoc-3.15.tar.gz
Pod::Plainer 0.01 1.03 RMBARKER/Pod-Plainer-1.03.tar.gz
Pod::Simple 3.05 3.14 DWHEELER/Pod-Simple-3.14.tar.gz
RPC::PlClient 0.2017 0.2020 MNOONING/PlRPC/PlRPC-0.2020.tar.gz
Safe 2.12 2.28 RGARCIA/Safe-2.28.tar.gz
SelfLoader 1.11 1.17 SMUELLER/SelfLoader-1.17.tar.gz
Storable 2.18 2.21 AMS/Storable-2.21.tar.gz
Switch 2.13 2.16 RGARCIA/Switch-2.16.tar.gz
Sys::Syslog 0.22 0.27 SAPER/Sys-Syslog-0.27.tar.gz
Term::ANSIColor 1.12 3.00 RRA/ANSIColor-3.00.tar.gz
Term::UI 0.18 0.20 KANE/Term-UI-0.20.tar.gz
Test::Builder 0.72 0.96 MSCHWERN/Test-Simple-0.96.tar.gz
Test::Harness 2.64 3.22 ANDYA/Test-Harness-3.22.tar.gz
Test::Harness::Straps 0.26_01 0.30 MSCHWERN/Test-Harness-Straps-0.30.tar.gz
Text::Balanced 2.0.0 2.02 ADAMK/Text-Balanced-2.02.tar.gz
Text::ParseWords 3.26 3.27 CHORNY/Text-ParseWords-3.27.zip
Text::Tabs 2007.1117 2009.0305 MUIR/modules/Text-Tabs+Wrap-2009.0305.tar.gz
Thread::Queue 2.00 2.11 JDHEDDEN/Thread-Queue-2.11.tar.gz
Thread::Semaphore 2.01 2.11 JDHEDDEN/Thread-Semaphore-2.11.tar.gz
Tie::IxHash 1.21 1.22 CHORNY/Tie-IxHash-1.22.tar.gz
Tie::RefHash 1.37 1.38 NUFFIN/Tie-RefHash-1.38.tar.gz
Time::HiRes 1.9711 1.9721 JHI/Time-HiRes-1.9721.tar.gz
Time::Local 1.18 1.1901 DROLSKY/Time-Local-1.1901.tar.gz
Time::Piece 1.12 1.20 MSERGEANT/Time-Piece-1.20.tar.gz
URI 1.35 1.56 GAAS/URI-1.56.tar.gz
Unicode::Collate 0.52 0.62 SADAHIRO/Unicode-Collate-0.62-withoutworldwriteables.tar.gz
Unicode::Normalize 1.02 1.07 SADAHIRO/Unicode-Normalize-1.07-withoutworldwriteables.tar.gz
XML::Parser 2.36 2.40 CHORNY/XML-Parser-2.40.tar.gz
XML::Twig 3.32 3.36 MIROD/XML-Twig-3.36.tar.gz
XSLoader 0.08 0.10 SAPER/XSLoader-0.10.tar.gz
attrs 1.02 1.03 DAPM/perl-5.10.1.tar.gz
base 2.13 2.15 RGARCIA/base-2.15.tar.gz
bigint 0.22 0.25 FLORA/bignum-0.25.tar.gz
constant 1.13 1.19 SAPER/constant-1.19.tar.gz
if 0.05 0.06 ILYAZ/modules/if-0.06.tar.gz
threads 1.67 1.81 JDHEDDEN/threads-1.81.tar.gz
threads::shared 1.14 1.34 JDHEDDEN/threads-shared-1.34.tar.gz
version 0.74 0.82 JPEACOCK/version-0.82.tar.gz
217 installed modules have no parseable version number
(use 'o conf show_unparsable_versions 1' to show them)
Running install for module 'Archive::Extract'
CPAN: Data::Dumper loaded ok (v2.121_14)
'YAML' not installed, falling back to Data::Dumper and Storable to read prefs '/home/bhaskar/.cpan/prefs'
Running make for B/BI/BINGOS/Archive-Extract-0.44.tar.gz
Fetching with LWP:
http://www.perl.org/CPAN/authors/id/B/BI/BINGOS/Archive-Extract-0.44.tar.gz
CPAN: Digest::SHA loaded ok (v5.45)
Fetching with LWP:
http://www.perl.org/CPAN/authors/id/B/BI/BINGOS/CHECKSUMS
Checksum for /home/bhaskar/.cpan/sources/authors/id/B/BI/BINGOS/Archive-Extract-0.44.tar.gz ok
Scanning cache /home/bhaskar/.cpan/build for sizes
DONE
Archive-Extract-0.44
Archive-Extract-0.44/t
Archive-Extract-0.44/t/src
Archive-Extract-0.44/t/src/x.xz
Archive-Extract-0.44/t/src/x.lzma
Archive-Extract-0.44/t/src/x.jar
Archive-Extract-0.44/t/src/y.tbz
Archive-Extract-0.44/t/src/y.tar.xz
Archive-Extract-0.44/t/src/y.jar
Archive-Extract-0.44/t/src/x.par
Archive-Extract-0.44/t/src/double_dir.zip
Archive-Extract-0.44/t/src/x.Z
Archive-Extract-0.44/t/src/x.gz
Archive-Extract-0.44/t/src/y.par
Archive-Extract-0.44/t/src/y.tar
Archive-Extract-0.44/t/src/y.txz
Archive-Extract-0.44/t/src/y.zip
Archive-Extract-0.44/t/src/x.zip
Archive-Extract-0.44/t/src/y.tar.bz2
Archive-Extract-0.44/t/src/x.tar.xz
Archive-Extract-0.44/t/src/x.txz
Archive-Extract-0.44/t/src/y.tar.gz
Archive-Extract-0.44/t/src/x.tar
Archive-Extract-0.44/t/src/x.tgz
Archive-Extract-0.44/t/src/y.tgz
Archive-Extract-0.44/t/src/x.tar.gz
Archive-Extract-0.44/t/src/x.bz2
Archive-Extract-0.44/t/01_Archive-Extract.t
Archive-Extract-0.44/MANIFEST
Archive-Extract-0.44/CHANGES
Archive-Extract-0.44/lib
Archive-Extract-0.44/lib/Archive
Archive-Extract-0.44/lib/Archive/Extract.pm
Archive-Extract-0.44/README
Archive-Extract-0.44/Makefile.PL
Archive-Extract-0.44/META.yml
CPAN: File::Temp loaded ok (v0.18)
Warning (usually harmless): 'YAML' not installed, will not store persistent state

CPAN.pm: Going to build B/BI/BINGOS/Archive-Extract-0.44.tar.gz

Checking if your kit is complete...
Looks good
Warning: prerequisite IPC::Cmd 0.42 not found. We have 0.401.
Writing Makefile for Archive::Extract
Could not read '/home/bhaskar/.cpan/build/Archive-Extract-0.44-JW5yUq/META.yml'. Falling back to other methods to determine prerequisites
---- Unsatisfied dependencies detected during ----
---- BINGOS/Archive-Extract-0.44.tar.gz ----
IPC::Cmd [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]
Checksum for /home/bhaskar/.cpan/sources/authors/id/B/BI/BINGOS/IPC-Cmd-0.60.tar.gz ok
IPC-Cmd-0.60
IPC-Cmd-0.60/t
IPC-Cmd-0.60/t/src
IPC-Cmd-0.60/t/src/child.pl
IPC-Cmd-0.60/t/src/x.tgz
IPC-Cmd-0.60/t/src/output.pl
IPC-Cmd-0.60/t/02_Interactive.t
IPC-Cmd-0.60/t/01_IPC-Cmd.t
IPC-Cmd-0.60/CHANGES
IPC-Cmd-0.60/MANIFEST
IPC-Cmd-0.60/lib
IPC-Cmd-0.60/lib/IPC
IPC-Cmd-0.60/lib/IPC/Cmd.pm
IPC-Cmd-0.60/Makefile.PL
IPC-Cmd-0.60/README
IPC-Cmd-0.60/META.yml
Warning (usually harmless): 'YAML' not installed, will not store persistent state

CPAN.pm: Going to build B/BI/BINGOS/IPC-Cmd-0.60.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for IPC::Cmd
Could not read '/home/bhaskar/.cpan/build/IPC-Cmd-0.60-Vztkd8/META.yml'. Falling back to other methods to determine prerequisites
cp lib/IPC/Cmd.pm blib/lib/IPC/Cmd.pm
Manifying blib/man3/IPC::Cmd.3pm
BINGOS/IPC-Cmd-0.60.tar.gz
/usr/bin/make -- OK
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01_IPC-Cmd........ok 1/0# IPC::Run: 0 IPC::Open3: 1.02
t/01_IPC-Cmd........ok
140/467 skipped: various reasons
t/02_Interactive....skipped
all skipped: No interactive tests from harness
All tests successful, 1 test and 140 subtests skipped.
Files=2, Tests=467, 3 wallclock secs ( 1.26 cusr + 0.96 csys = 2.22 CPU)
BINGOS/IPC-Cmd-0.60.tar.gz
/usr/bin/make test -- OK
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running make install
Prepending /home/bhaskar/.cpan/build/IPC-Cmd-0.60-Vztkd8/blib/arch /home/bhaskar/.cpan/build/IPC-Cmd-0.60-Vztkd8/blib/lib to PERL5LIB for 'install'
Installing /usr/local/share/perl/5.10.0/IPC/Cmd.pm
Installing /usr/local/man/man3/IPC::Cmd.3pm
Writing /usr/local/lib/perl/5.10.0/auto/IPC/Cmd/.packlist
Appending installation info to /usr/local/lib/perl/5.10.0/perllocal.pod
BINGOS/IPC-Cmd-0.60.tar.gz
/usr/bin/make install -- OK
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running make for B/BI/BINGOS/Archive-Extract-0.44.tar.gz
Has already been unwrapped into directory /home/bhaskar/.cpan/build/Archive-Extract-0.44-JW5yUq

CPAN.pm: Going to build B/BI/BINGOS/Archive-Extract-0.44.tar.gz

cp lib/Archive/Extract.pm blib/lib/Archive/Extract.pm
Manifying blib/man3/Archive::Extract.3pm
BINGOS/Archive-Extract-0.44.tar.gz
/usr/bin/make -- OK
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01_Archive-Extract....ok
558/1392 skipped: various reasons
All tests successful, 558 subtests skipped.
Files=1, Tests=1392, 2 wallclock secs ( 1.42 cusr + 0.48 csys = 1.90 CPU)
BINGOS/Archive-Extract-0.44.tar.gz
/usr/bin/make test -- OK
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running make install
Prepending /home/bhaskar/.cpan/build/Archive-Extract-0.44-JW5yUq/blib/arch /home/bhaskar/.cpan/build/Archive-Extract-0.44-JW5yUq/blib/lib to PERL5LIB for 'install'
Installing /usr/local/share/perl/5.10.0/Archive/Extract.pm
Installing /usr/local/man/man3/Archive::Extract.3pm
Writing /usr/local/lib/perl/5.10.0/auto/Archive/Extract/.packlist
Appending installation info to /usr/local/lib/perl/5.10.0/perllocal.pod
BINGOS/Archive-Extract-0.44.tar.gz
/usr/bin/make install -- OK
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running install for module 'Archive::Tar'
'YAML' not installed, falling back to Data::Dumper and Storable to read prefs '/home/bhaskar/.cpan/prefs'
Running make for B/BI/BINGOS/Archive-Tar-1.68.tar.gz
Fetching with LWP:
http://www.perl.org/CPAN/authors/id/B/BI/BINGOS/Archive-Tar-1.68.tar.gz
Checksum for /home/bhaskar/.cpan/sources/authors/id/B/BI/BINGOS/Archive-Tar-1.68.tar.gz ok
Archive-Tar-1.68
Archive-Tar-1.68/lib
Archive-Tar-1.68/lib/Archive
Archive-Tar-1.68/lib/Archive/Tar
Archive-Tar-1.68/lib/Archive/Tar/Constant.pm
Archive-Tar-1.68/lib/Archive/Tar/File.pm
Archive-Tar-1.68/lib/Archive/Tar.pm
Archive-Tar-1.68/t
Archive-Tar-1.68/t/src
Archive-Tar-1.68/t/src/short
Archive-Tar-1.68/t/src/short/b
Archive-Tar-1.68/t/src/short/foo.tbz
Archive-Tar-1.68/t/src/short/bar.tar
Archive-Tar-1.68/t/src/short/foo.tgz
Archive-Tar-1.68/t/src/header
Archive-Tar-1.68/t/src/header/signed.tar
Archive-Tar-1.68/t/src/long
Archive-Tar-1.68/t/src/long/b
Archive-Tar-1.68/t/src/long/foo.tgz
Archive-Tar-1.68/t/src/long/foo.tbz
Archive-Tar-1.68/t/src/long/bar.tar
Archive-Tar-1.68/t/src/linktest
Archive-Tar-1.68/t/src/linktest/linktest_with_dir.tar
Archive-Tar-1.68/t/src/linktest/linktest_missing_dir.tar
Archive-Tar-1.68/t/05_iter.t
Archive-Tar-1.68/t/02_methods.t
Archive-Tar-1.68/t/01_use.t
Archive-Tar-1.68/t/99_pod.t
Archive-Tar-1.68/t/90_symlink.t
Archive-Tar-1.68/t/03_file.t
Archive-Tar-1.68/t/06_error.t
Archive-Tar-1.68/t/04_resolved_issues.t
Archive-Tar-1.68/MANIFEST
Archive-Tar-1.68/CHANGES
Archive-Tar-1.68/bin
Archive-Tar-1.68/bin/ptar
Archive-Tar-1.68/bin/ptardiff
Archive-Tar-1.68/Makefile.PL
Archive-Tar-1.68/README
Archive-Tar-1.68/META.yml
Warning (usually harmless): 'YAML' not installed, will not store persistent state

CPAN.pm: Going to build B/BI/BINGOS/Archive-Tar-1.68.tar.gz

You do not have IO::Compress::Bzip2 installed. This means you can not read or write bzip2 compressed archives!
Note: you can disable this warning (and the prerequisite) by invoking Makefile.PL with '-n'

Archive::Tar comes with a utility called 'ptardiff' which lets you run diffs against tar archives.

However, this utility requires you to have Text::Diff installed.

To add Text::Diff as a prerequisite, please supply the '-d' option when invoking this Makefile.PL.

Checking if your kit is complete...
Looks good
Warning: prerequisite Compress::Zlib 2.015 not found. We have 2.012.
Warning: prerequisite IO::Compress::Base 2.015 not found. We have 2.012.
Warning: prerequisite IO::Compress::Bzip2 2.015 not found.
Warning: prerequisite IO::Compress::Gzip 2.015 not found. We have 2.012.
Writing Makefile for Archive::Tar
Could not read '/home/bhaskar/.cpan/build/Archive-Tar-1.68-6vWFHd/META.yml'. Falling back to other methods to determine prerequisites
---- Unsatisfied dependencies detected during ----
---- BINGOS/Archive-Tar-1.68.tar.gz ----
Compress::Zlib [requires]
IO::Compress::Gzip [requires]
IO::Compress::Base [requires]
IO::Compress::Bzip2 [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]
Running make test
Delayed until after prerequisites
Running make install
Delayed until after prerequisites
Running install for module 'Compress::Zlib'
'YAML' not installed, falling back to Data::Dumper and Storable to read prefs '/home/bhaskar/.cpan/prefs'
Running make for P/PM/PMQS/IO-Compress-2.030.tar.gz
Fetching with LWP:
http://www.perl.org/CPAN/authors/id/P/PM/PMQS/IO-Compress-2.030.tar.gz
Fetching with LWP:
http://www.perl.org/CPAN/authors/id/P/PM/PMQS/CHECKSUMS
Checksum for /home/bhaskar/.cpan/sources/authors/id/P/PM/PMQS/IO-Compress-2.030.tar.gz ok
IO-Compress-2.030/
IO-Compress-2.030/lib/
IO-Compress-2.030/lib/File/
IO-Compress-2.030/lib/File/GlobMapper.pm
IO-Compress-2.030/lib/Compress/
IO-Compress-2.030/lib/Compress/Zlib.pm
IO-Compress-2.030/lib/IO/
IO-Compress-2.030/lib/IO/Uncompress/
IO-Compress-2.030/lib/IO/Uncompress/RawInflate.pm
IO-Compress-2.030/lib/IO/Uncompress/Gunzip.pm
IO-Compress-2.030/lib/IO/Uncompress/Unzip.pm
IO-Compress-2.030/lib/IO/Uncompress/Base.pm
IO-Compress-2.030/lib/IO/Uncompress/Inflate.pm
IO-Compress-2.030/lib/IO/Uncompress/Bunzip2.pm
IO-Compress-2.030/lib/IO/Uncompress/Adapter/
IO-Compress-2.030/lib/IO/Uncompress/Adapter/Identity.pm
IO-Compress-2.030/lib/IO/Uncompress/Adapter/Inflate.pm
IO-Compress-2.030/lib/IO/Uncompress/Adapter/Bunzip2.pm
IO-Compress-2.030/lib/IO/Uncompress/AnyInflate.pm
IO-Compress-2.030/lib/IO/Uncompress/AnyUncompress.pm
IO-Compress-2.030/lib/IO/Compress/
IO-Compress-2.030/lib/IO/Compress/Base.pm
IO-Compress-2.030/lib/IO/Compress/Zip.pm
IO-Compress-2.030/lib/IO/Compress/Zip/
IO-Compress-2.030/lib/IO/Compress/Zip/Constants.pm
IO-Compress-2.030/lib/IO/Compress/Adapter/
IO-Compress-2.030/lib/IO/Compress/Adapter/Identity.pm
IO-Compress-2.030/lib/IO/Compress/Adapter/Deflate.pm
IO-Compress-2.030/lib/IO/Compress/Adapter/Bzip2.pm
IO-Compress-2.030/lib/IO/Compress/RawDeflate.pm
IO-Compress-2.030/lib/IO/Compress/Deflate.pm
IO-Compress-2.030/lib/IO/Compress/Gzip/
IO-Compress-2.030/lib/IO/Compress/Gzip/Constants.pm
IO-Compress-2.030/lib/IO/Compress/Bzip2.pm
IO-Compress-2.030/lib/IO/Compress/Gzip.pm
IO-Compress-2.030/lib/IO/Compress/Zlib/
IO-Compress-2.030/lib/IO/Compress/Zlib/Constants.pm
IO-Compress-2.030/lib/IO/Compress/Zlib/Extra.pm
IO-Compress-2.030/lib/IO/Compress/Base/
IO-Compress-2.030/lib/IO/Compress/Base/Common.pm
IO-Compress-2.030/MANIFEST
IO-Compress-2.030/private/
IO-Compress-2.030/private/MakeUtil.pm
IO-Compress-2.030/README
IO-Compress-2.030/Changes
IO-Compress-2.030/Makefile.PL
IO-Compress-2.030/t/
IO-Compress-2.030/t/101truncate-bzip2.t
IO-Compress-2.030/t/010examples-bzip2.t
IO-Compress-2.030/t/004gziphdr.t
IO-Compress-2.030/t/110encode-gzip.t
IO-Compress-2.030/t/100generic-gzip.t
IO-Compress-2.030/t/110encode-deflate.t
IO-Compress-2.030/t/106prime-deflate.t
IO-Compress-2.030/t/102tied-zip.t
IO-Compress-2.030/t/002any-transparent.t
IO-Compress-2.030/t/108anyunc-zip.t
IO-Compress-2.030/t/cz-06gzsetp.t
IO-Compress-2.030/t/103newtied-gzip.t
IO-Compress-2.030/t/105oneshot-bzip2.t
IO-Compress-2.030/t/102tied-rawdeflate.t
IO-Compress-2.030/t/107multi-deflate.t
IO-Compress-2.030/t/101truncate-rawdeflate.t
IO-Compress-2.030/t/109merge-deflate.t
IO-Compress-2.030/t/cz-08encoding.t
IO-Compress-2.030/t/101truncate-deflate.t
IO-Compress-2.030/t/108anyunc-bzip2.t
IO-Compress-2.030/t/106prime-rawdeflate.t
IO-Compress-2.030/t/108anyunc-rawdeflate.t
IO-Compress-2.030/t/109merge-rawdeflate.t
IO-Compress-2.030/t/002any-zip.t
IO-Compress-2.030/t/108anyunc-deflate.t
IO-Compress-2.030/t/cz-01version.t
IO-Compress-2.030/t/002any-gzip.t
IO-Compress-2.030/t/105oneshot-gzip.t
IO-Compress-2.030/t/103newtied-bzip2.t
IO-Compress-2.030/t/050interop-gzip.t
IO-Compress-2.030/t/100generic-deflate.t
IO-Compress-2.030/t/002any-rawdeflate.t
IO-Compress-2.030/t/006zip.t
IO-Compress-2.030/t/110encode-bzip2.t
IO-Compress-2.030/t/106prime-gzip.t
IO-Compress-2.030/t/001zlib-generic-zip.t
IO-Compress-2.030/t/010examples-zlib.t
IO-Compress-2.030/t/103newtied-rawdeflate.t
IO-Compress-2.030/t/001zlib-generic-deflate.t
IO-Compress-2.030/t/109merge-gzip.t
IO-Compress-2.030/t/110encode-rawdeflate.t
IO-Compress-2.030/t/103newtied-zip.t
IO-Compress-2.030/t/102tied-deflate.t
IO-Compress-2.030/t/107multi-bzip2.t
IO-Compress-2.030/t/107multi-rawdeflate.t
IO-Compress-2.030/t/020isize.t
IO-Compress-2.030/t/107multi-gzip.t
IO-Compress-2.030/t/globmapper.t
IO-Compress-2.030/t/100generic-bzip2.t
IO-Compress-2.030/t/999pod.t
IO-Compress-2.030/t/104destroy-zip.t
IO-Compress-2.030/t/107multi-zip.t
IO-Compress-2.030/t/102tied-bzip2.t
IO-Compress-2.030/t/100generic-zip.t
IO-Compress-2.030/t/Test/
IO-Compress-2.030/t/Test/Builder.pm
IO-Compress-2.030/t/Test/More.pm
IO-Compress-2.030/t/Test/Simple.pm
IO-Compress-2.030/t/105oneshot-gzip-only.t
IO-Compress-2.030/t/108anyunc-transparent.t
IO-Compress-2.030/t/000prereq.t
IO-Compress-2.030/t/001zlib-generic-gzip.t
IO-Compress-2.030/t/105oneshot-zip-only.t
IO-Compress-2.030/t/104destroy-rawdeflate.t
IO-Compress-2.030/t/100generic-rawdeflate.t
IO-Compress-2.030/t/105oneshot-zip-bzip2-only.t
IO-Compress-2.030/t/002any-deflate.t
IO-Compress-2.030/t/compress/
IO-Compress-2.030/t/compress/zlib-generic.pl
IO-Compress-2.030/t/compress/merge.pl
IO-Compress-2.030/t/compress/generic.pl
IO-Compress-2.030/t/compress/newtied.pl
IO-Compress-2.030/t/compress/tied.pl
IO-Compress-2.030/t/compress/any.pl
IO-Compress-2.030/t/compress/encode.pl
IO-Compress-2.030/t/compress/CompTestUtils.pm
IO-Compress-2.030/t/compress/multi.pl
IO-Compress-2.030/t/compress/oneshot.pl
IO-Compress-2.030/t/compress/destroy.pl
IO-Compress-2.030/t/compress/truncate.pl
IO-Compress-2.030/t/compress/prime.pl
IO-Compress-2.030/t/compress/anyunc.pl
IO-Compress-2.030/t/001bzip2.t
IO-Compress-2.030/t/101truncate-gzip.t
IO-Compress-2.030/t/104destroy-bzip2.t
IO-Compress-2.030/t/101truncate-zip.t
IO-Compress-2.030/t/104destroy-gzip.t
IO-Compress-2.030/t/106prime-bzip2.t
IO-Compress-2.030/t/103newtied-deflate.t
IO-Compress-2.030/t/cz-14gzopen.t
IO-Compress-2.030/t/01misc.t
IO-Compress-2.030/t/005defhdr.t
IO-Compress-2.030/t/105oneshot-deflate.t
IO-Compress-2.030/t/105oneshot-rawdeflate.t
IO-Compress-2.030/t/108anyunc-gzip.t
IO-Compress-2.030/t/110encode-zip.t
IO-Compress-2.030/t/109merge-zip.t
IO-Compress-2.030/t/102tied-gzip.t
IO-Compress-2.030/t/cz-05examples.t
IO-Compress-2.030/t/105oneshot-zip.t
IO-Compress-2.030/t/104destroy-deflate.t
IO-Compress-2.030/t/001zlib-generic-rawdeflate.t
IO-Compress-2.030/t/106prime-zip.t
IO-Compress-2.030/t/cz-03zlib-v1.t
IO-Compress-2.030/META.yml
IO-Compress-2.030/pod/
IO-Compress-2.030/pod/FAQ.pod
IO-Compress-2.030/examples/
IO-Compress-2.030/examples/io/
IO-Compress-2.030/examples/io/bzip2/
IO-Compress-2.030/examples/io/bzip2/bzgrep
IO-Compress-2.030/examples/io/bzip2/bzcat
IO-Compress-2.030/examples/io/bzip2/bzstream
IO-Compress-2.030/examples/io/gzip/
IO-Compress-2.030/examples/io/gzip/gzstream
IO-Compress-2.030/examples/io/gzip/gzcat
IO-Compress-2.030/examples/io/gzip/gzgrep
IO-Compress-2.030/examples/io/gzip/gzappend
IO-Compress-2.030/examples/io/anycat
IO-Compress-2.030/examples/compress-zlib/
IO-Compress-2.030/examples/compress-zlib/gzstream
IO-Compress-2.030/examples/compress-zlib/filtinf
IO-Compress-2.030/examples/compress-zlib/filtdef
IO-Compress-2.030/examples/compress-zlib/gzcat
IO-Compress-2.030/examples/compress-zlib/gzgrep
Warning (usually harmless): 'YAML' not installed, will not store persistent state

CPAN.pm: Going to build P/PM/PMQS/IO-Compress-2.030.tar.gz

Up/Downgrade not needed.
Checking if your kit is complete...
Looks good
Warning: prerequisite Compress::Raw::Bzip2 2.030 not found.
Warning: prerequisite Compress::Raw::Zlib 2.030 not found. We have 2.012.
Writing Makefile for IO::Compress
Could not read '/home/bhaskar/.cpan/build/IO-Compress-2.030-9apMhG/META.yml'. Falling back to other methods to determine prerequisites
---- Unsatisfied dependencies detected during ----
---- PMQS/IO-Compress-2.030.tar.gz ----
Compress::Raw::Zlib [requires]
Compress::Raw::Bzip2 [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]
Running make test
Delayed until after prerequisites
Running make install
Delayed until after prerequisites
Running install for module 'Compress::Raw::Zlib'
'YAML' not installed, falling back to Data::Dumper and Storable to read prefs '/home/bhaskar/.cpan/prefs'
Running make for P/PM/PMQS/Compress-Raw-Zlib-2.030.tar.gz
Fetching with LWP:
http://www.perl.org/CPAN/authors/id/P/PM/PMQS/Compress-Raw-Zlib-2.030.tar.gz
........output snipped
t/050interop-gzip...............ok
t/100generic-bzip2..............ok
t/100generic-deflate............ok
t/100generic-gzip...............ok
t/100generic-rawdeflate.........ok
t/100generic-zip................ok
t/101truncate-bzip2.............ok
t/101truncate-deflate...........ok
t/101truncate-gzip..............ok
t/101truncate-rawdeflate........ok
t/101truncate-zip...............ok
t/102tied-bzip2.................ok
t/102tied-deflate...............ok
t/102tied-gzip..................ok
t/102tied-rawdeflate............ok
t/102tied-zip...................ok
t/103newtied-bzip2..............ok
t/103newtied-deflate............ok
t/103newtied-gzip...............ok
t/103newtied-rawdeflate.........ok
t/103newtied-zip................ok
t/104destroy-bzip2..............ok
t/104destroy-deflate............ok
t/104destroy-gzip...............ok
t/104destroy-rawdeflate.........ok
t/104destroy-zip................ok
t/105oneshot-bzip2..............ok
2/986 skipped: various reasons
t/105oneshot-deflate............ok

….. like this it goes on and fetching different modules and installed them into the system.Ook once it finished you will get the new version of perl installed in your system.Lets check it:

bhaskar@bhaskar-laptop_07:38:03_Sun Oct 10:~> sudo /usr/bin/perl -v
Password:

This is perl 5, version 12, subversion 1 (v5.12.1) built for i686-linux-thread-multi

Copyright 1987-2010, 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.

I think upgrading perl like this headache free and better way,as it’s give you so much insight into it.And you can visibly see where are the componenets are going.

Hope this will help.
Cheers!
Bhaskar

About unixbhaskar
GNU/Linux Consultant

8 Responses to Perl upgrade from cpan shell

  1. Nux says:

    It’s also worth noting that this WILL break your system.

    Most distros rely on certain versions and packages from CPAN.

    • unixbhaskar says:

      Thanks for pointing out that Nux. But I consider myself lucky in that matter I tried it on two different distro and it just work.That were tested on Arch Linux and Debian Lenny.

      But still I am curious to know how it breaks and why it breaks for you Nux?Would you mind to shed light on that? So it would be beneficial for everyone reading this post and take care.Please be specific to your problem you encounter and the solution you opted for.

  2. Pingback: Sample of normalize database biodata | Hi Tech Stuff Reviews & Updates

  3. James Harrison says:

    Theres no update CPAN option. Using RHEL 5.6

    • unixbhaskar says:

      James,

      I believe I have done an upgrade not an update! And you have to use it from within the cpan shell ;like I showed in the post.

      And I had have tested it on Arch Linux and Debian Lenny ; as I mentioned in the post too.So not sure about RHEL 5.6

      But you should fire cpan from the command line and once you answer some questions it will create the shell for you.Then you might try the steps I shown above.

      -Bhaskar

  4. Sudhanshu Tripathi says:

    got this message:
    “cpan> upgrade
    Unknown command ‘upgrade’. Type ? for help.”

    using rehl 5.0

  5. Palash Sarkar says:

    I have a perl version 5.10 on CentOS 6 so which version should be the most suited to upgrade and what steps should be followed for the upgrade because I’m worried about the file conflicts and the version changes in syntax and other libraries.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: