Re: Upgrade Perl

Robbi Nespu <[email protected]> Sat, 7 Oct 2023 09:26:47 +0800
Newsgroups gmane.comp.lang.perl.beginners
Message-ID <[email protected]>

On 6/10/2023 3:03 am, William Torrez Corea wrote:
> How to upgrade Perl from Debian?
> 
> I have Perl *v5.32.1*
> 
> -- 
> 
> With kindest regards, William.
> 
> ⢀⣴⠾⠻⢶⣦⠀
> ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
> ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org <https://www.debian.org>
> ⠈⠳⣄⠀⠀⠀⠀
> 
> 

I think you are using debian buster, i just checked 
https://packages.debian.org/bullseye/perl and it say 5.32.1-4+deb11u2

Is there any specific version of perl that you want to use?

Incase you system are okey to update, you may just apt upgrade and 
update your system to bookworm which have perl 5.36.0-7.

Incase you don't want huge upgrade and just want to have specific perl 
(like my first question) then using "perlbrew" might be the right choice

\curl -L https://install.perlbrew.pl | bash

Add the following line to your shell configuration file (e.g., ~/.bashrc 
or ~/.zshrc) to initialize perlbrew:

source ~/perl5/perlbrew/etc/bashrc

Then, restart your shell or run source ~/.bashrc (or equivalent for your 
shell) to apply the changes.

Install a specific version of Perl using perlbrew. Replace perl_version 
with the desired Perl version (e.g., "5.34.0"):

perlbrew install perl-<perl_version>

Set the installed Perl version as the default:
perlbrew switch perl-<perl_version>

Verify the installed Perl version:

perl -v

This way, you can manage multiple Perl versions and easily switch 
between them using perlbrew.

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/