Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The Perl package is in /usr/bin and is an older version (5.12.4) and the current stable release appears to be 5.14.2.

How do I update this version? Root access is required, and I do not want to compile new binaries to install in a directory that is in my path

share|improve this question
Do you have root access? – mdpc Feb 18 '13 at 18:42

You can also do (sudo being super user access):

$ sudo cpan
cpan[1]> upgrade

This will update all of your Perl packages and test them for you.

share|improve this answer

Perl Tag:

Perl is a high-level programming language that comes installed by default in Ubuntu.

Package versions

When Ubuntu releases a new version of its OS every 6 months, that release is largely frozen in time. While the software that is part of that release will get bug fixes and security patches, new major releases of software and the new features that come with them will not be available.

Ubuntu 11.10 Perl version

A link: What version of Perl is shipped with the Desktop Version of 11.10?

The Perl 5.14.2

Ubuntu Packages:

precise (perl): Larry Wall's Practical Extraction and Report Language 5.14.2-6ubuntu2: amd64 i386

Ubuntu 12.04 LTS

The Ubuntu 12.04 will be released:

April 26th Final Release

Ubuntu 12.04 Forum:

share|improve this answer
sudo perl -MCPAN -e 'upgrade'

is an option that might help.

share|improve this answer
Did not succeed because I had an error, but I seems to have updated some packages which solved my problem. – Andrei Mar 1 '15 at 21:09
you mean it did not complete or completed with errors? – Olu Mar 4 '15 at 14:20
The install asked for my apach.e install directory and then crashed because I supplied an additional "/" in the path name. The upgrade still did something though, as my problem went away. I will upgrade to a newer Ubuntu soon – Andrei Mar 4 '15 at 16:50

You should use perlbrew, this is the actual way to do it. Maybe Ubuntu people won't like this way because it is not package based, but if you need to involve yourself into Perl, this is a prerequisite. The process is painless and you don't have to be afraid by compiling Perl, it's really painless.

Depending of your needs, take also a look at cpanminus and local::lib, it will make you life easier.

None of those requires root privileges, you have to enjoy this.

Don't forget that using the Ubuntu outdated Perl packages is almost crazy because it is really old versions and you just don't need to hurt yourself by using this old stuff.

See also this answer.

share|improve this answer

Open Terminal (CTRL + ALT + T) and execute the following command:

sudo su

And become the super user by giving your password. Then execute:

apt-get update

And then execute:

apt-get upgrade

And finally execute:

apt-get install -y perl
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.