Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: safe way to upgrade module

by sundialsvc4 (Abbot)
on May 02, 2013 at 12:12 UTC ( #1031742=note: print w/replies, xml ) Need Help??

in reply to safe way to upgrade module

In many Linux distributions, Perl packages are, well, packaged, as Linux packages in the standard distro upgrade-mechanism.   Most often, you should just use this and be done.   But of course, sometimes you can’t, because distros tend to lag-behind ... and there is a reason why they do, which is this:   that very-important bits of their own system management software is written in Perl.   You do not want to disrupt that.

So, here’s what to do:   do a Super Search, above, for “install non root,” because your situation is basically identical to that of someone who wants to install Perl in a shared-hosting environment where (s)he does not have access to the root userid.   (Note also that you will not need to be root to do this, either.   You will designate an additional directory to hold “local packages,” then set up cpan or cpanm to know to install to it, then arrange (by some operating-system appropriate means) for the PERL5LIB environment-variable to include it first, as will be confirmed by entering the command perl -V (with a capital V).   Your search will quickly produce about 26 other threads and you should review them all.

The strategy is simple and sound:   first, see if upgrading a Linux-distro package (or ActiveState or Strawberry) solves your problem.   If not, make your upgrades alongside what is already there, in such a way that you supersede them for your own purposes but not theirs.

Replies are listed 'Best First'.
Re^2: safe way to upgrade module
by karlgoethebier (Monsignor) on May 02, 2013 at 13:51 UTC
    "So, here’s what to do:do a Super Search, above, for “install non root,”..."

    Yes, but that (install non root) is what perlbrew does in a very convenient way. So why the Mess Around?


    «The Crux of the Biscuit is the Apostrophe»

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1031742]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2018-06-24 12:04 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.