How do I update/install Perl?












17















The Perl package is in /usr/bin and is an older version (5.12.4). 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
















17















The Perl package is in /usr/bin and is an older version (5.12.4). 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














17












17








17


5






The Perl package is in /usr/bin and is an older version (5.12.4). 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
















The Perl package is in /usr/bin and is an older version (5.12.4). 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.







perl






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 3 '17 at 17:10









Peter Mortensen

1,03721016




1,03721016










asked Apr 7 '12 at 12:34









RobertRobert

94113




94113













  • Do you have root access?

    – mdpc
    Feb 18 '13 at 18:42



















  • Do you have root access?

    – mdpc
    Feb 18 '13 at 18:42

















Do you have root access?

– mdpc
Feb 18 '13 at 18:42





Do you have root access?

– mdpc
Feb 18 '13 at 18:42










5 Answers
5






active

oldest

votes


















32















Warning: Using cpan as shown will take a considerable amount of time and cannot be left unattended.




The following command will update all of your Perl packages and test them for you:



$ sudo cpan
cpan[1]> upgrade





share|improve this answer

































    9














    Perl Tag:




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




    Package versions



    https://help.ubuntu.com/community/UbuntuBackports:




    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: http://packages.ubuntu.com/search?keywords=perl&searchon=names&suite=all&section=all




    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: https://wiki.ubuntu.com/PrecisePangolin/ReleaseSchedule




    April 26th Final Release




    Ubuntu 12.04 Forum: http://ubuntuforums.org/forumdisplay.php?f=412






    share|improve this answer

































      6














      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 Smith
        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






      • 1





        This updates perl modules, not perl

        – Eugen Konkov
        Oct 15 '16 at 17:59



















      5














      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

































        3














        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 on your needs, take also a look at cpanminus and local::lib. It will make you life easier.



        None of those require root privileges; you have to enjoy this.



        Don't forget that using the Ubuntu outdated Perl packages is almost crazy, because they are 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

























          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f119700%2fhow-do-i-update-install-perl%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          5 Answers
          5






          active

          oldest

          votes








          5 Answers
          5






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          32















          Warning: Using cpan as shown will take a considerable amount of time and cannot be left unattended.




          The following command will update all of your Perl packages and test them for you:



          $ sudo cpan
          cpan[1]> upgrade





          share|improve this answer






























            32















            Warning: Using cpan as shown will take a considerable amount of time and cannot be left unattended.




            The following command will update all of your Perl packages and test them for you:



            $ sudo cpan
            cpan[1]> upgrade





            share|improve this answer




























              32












              32








              32








              Warning: Using cpan as shown will take a considerable amount of time and cannot be left unattended.




              The following command will update all of your Perl packages and test them for you:



              $ sudo cpan
              cpan[1]> upgrade





              share|improve this answer
















              Warning: Using cpan as shown will take a considerable amount of time and cannot be left unattended.




              The following command will update all of your Perl packages and test them for you:



              $ sudo cpan
              cpan[1]> upgrade






              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Jan 23 at 21:55









              Dave Jarvis

              7681620




              7681620










              answered Feb 18 '13 at 17:04









              Eric FossumEric Fossum

              5171514




              5171514

























                  9














                  Perl Tag:




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




                  Package versions



                  https://help.ubuntu.com/community/UbuntuBackports:




                  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: http://packages.ubuntu.com/search?keywords=perl&searchon=names&suite=all&section=all




                  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: https://wiki.ubuntu.com/PrecisePangolin/ReleaseSchedule




                  April 26th Final Release




                  Ubuntu 12.04 Forum: http://ubuntuforums.org/forumdisplay.php?f=412






                  share|improve this answer






























                    9














                    Perl Tag:




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




                    Package versions



                    https://help.ubuntu.com/community/UbuntuBackports:




                    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: http://packages.ubuntu.com/search?keywords=perl&searchon=names&suite=all&section=all




                    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: https://wiki.ubuntu.com/PrecisePangolin/ReleaseSchedule




                    April 26th Final Release




                    Ubuntu 12.04 Forum: http://ubuntuforums.org/forumdisplay.php?f=412






                    share|improve this answer




























                      9












                      9








                      9







                      Perl Tag:




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




                      Package versions



                      https://help.ubuntu.com/community/UbuntuBackports:




                      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: http://packages.ubuntu.com/search?keywords=perl&searchon=names&suite=all&section=all




                      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: https://wiki.ubuntu.com/PrecisePangolin/ReleaseSchedule




                      April 26th Final Release




                      Ubuntu 12.04 Forum: http://ubuntuforums.org/forumdisplay.php?f=412






                      share|improve this answer















                      Perl Tag:




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




                      Package versions



                      https://help.ubuntu.com/community/UbuntuBackports:




                      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: http://packages.ubuntu.com/search?keywords=perl&searchon=names&suite=all&section=all




                      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: https://wiki.ubuntu.com/PrecisePangolin/ReleaseSchedule




                      April 26th Final Release




                      Ubuntu 12.04 Forum: http://ubuntuforums.org/forumdisplay.php?f=412







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Apr 13 '17 at 12:24









                      Community

                      1




                      1










                      answered Apr 7 '12 at 13:42









                      user26687user26687

                      11.9k12331




                      11.9k12331























                          6














                          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 Smith
                            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






                          • 1





                            This updates perl modules, not perl

                            – Eugen Konkov
                            Oct 15 '16 at 17:59
















                          6














                          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 Smith
                            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






                          • 1





                            This updates perl modules, not perl

                            – Eugen Konkov
                            Oct 15 '16 at 17:59














                          6












                          6








                          6







                          sudo perl -MCPAN -e 'upgrade'


                          is an option that might help.






                          share|improve this answer















                          sudo perl -MCPAN -e 'upgrade'


                          is an option that might help.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Nov 23 '13 at 13:35









                          Braiam

                          51.7k20136221




                          51.7k20136221










                          answered Nov 23 '13 at 12:12









                          Olu SmithOlu Smith

                          92568




                          92568













                          • 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 Smith
                            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






                          • 1





                            This updates perl modules, not perl

                            – Eugen Konkov
                            Oct 15 '16 at 17:59



















                          • 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 Smith
                            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






                          • 1





                            This updates perl modules, not perl

                            – Eugen Konkov
                            Oct 15 '16 at 17:59

















                          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





                          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 Smith
                          Mar 4 '15 at 14:20





                          you mean it did not complete or completed with errors?

                          – Olu Smith
                          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





                          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




                          1




                          1





                          This updates perl modules, not perl

                          – Eugen Konkov
                          Oct 15 '16 at 17:59





                          This updates perl modules, not perl

                          – Eugen Konkov
                          Oct 15 '16 at 17:59











                          5














                          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






























                            5














                            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




























                              5












                              5








                              5







                              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















                              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














                              share|improve this answer



                              share|improve this answer








                              edited Feb 11 '15 at 9:54







                              user364819

















                              answered Feb 11 '15 at 5:15









                              NimishanNimishan

                              5112




                              5112























                                  3














                                  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 on your needs, take also a look at cpanminus and local::lib. It will make you life easier.



                                  None of those require root privileges; you have to enjoy this.



                                  Don't forget that using the Ubuntu outdated Perl packages is almost crazy, because they are 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






























                                    3














                                    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 on your needs, take also a look at cpanminus and local::lib. It will make you life easier.



                                    None of those require root privileges; you have to enjoy this.



                                    Don't forget that using the Ubuntu outdated Perl packages is almost crazy, because they are 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




























                                      3












                                      3








                                      3







                                      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 on your needs, take also a look at cpanminus and local::lib. It will make you life easier.



                                      None of those require root privileges; you have to enjoy this.



                                      Don't forget that using the Ubuntu outdated Perl packages is almost crazy, because they are 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















                                      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 on your needs, take also a look at cpanminus and local::lib. It will make you life easier.



                                      None of those require root privileges; you have to enjoy this.



                                      Don't forget that using the Ubuntu outdated Perl packages is almost crazy, because they are 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














                                      share|improve this answer



                                      share|improve this answer








                                      edited Apr 13 '17 at 12:25









                                      Community

                                      1




                                      1










                                      answered Jan 28 '14 at 7:32









                                      smonffsmonff

                                      356219




                                      356219






























                                          draft saved

                                          draft discarded




















































                                          Thanks for contributing an answer to Ask Ubuntu!


                                          • Please be sure to answer the question. Provide details and share your research!

                                          But avoid



                                          • Asking for help, clarification, or responding to other answers.

                                          • Making statements based on opinion; back them up with references or personal experience.


                                          To learn more, see our tips on writing great answers.




                                          draft saved


                                          draft discarded














                                          StackExchange.ready(
                                          function () {
                                          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f119700%2fhow-do-i-update-install-perl%23new-answer', 'question_page');
                                          }
                                          );

                                          Post as a guest















                                          Required, but never shown





















































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown

































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown







                                          Popular posts from this blog

                                          數位音樂下載

                                          格利澤436b

                                          When can things happen in Etherscan, such as the picture below?