How do I know what programming languages are pre-installed in Ubuntu?












1














How do I know what programming languages (I mean their compilers and interpreters) are already pre-installed in Ubuntu? For example, I see that Python is here. If I type python command in the terminal, it turns out that I have python version 2.7.12. But what about other popular programming and scripting languages like Ruby, Perl, C, Lua, awk, Java, PHP, etc. etc. Should I try to launch them in the terminal or try something like language --version one by one, or is there a better way to know this?










share|improve this question
























  • You cannot "install" a language on any system .. there are interpreters and compilers you install and since they are sometimes similar sometimes really different I don't think there is a simple way to check for all of them rather than checking one by one
    – derHugo
    Jul 3 '17 at 13:46
















1














How do I know what programming languages (I mean their compilers and interpreters) are already pre-installed in Ubuntu? For example, I see that Python is here. If I type python command in the terminal, it turns out that I have python version 2.7.12. But what about other popular programming and scripting languages like Ruby, Perl, C, Lua, awk, Java, PHP, etc. etc. Should I try to launch them in the terminal or try something like language --version one by one, or is there a better way to know this?










share|improve this question
























  • You cannot "install" a language on any system .. there are interpreters and compilers you install and since they are sometimes similar sometimes really different I don't think there is a simple way to check for all of them rather than checking one by one
    – derHugo
    Jul 3 '17 at 13:46














1












1








1







How do I know what programming languages (I mean their compilers and interpreters) are already pre-installed in Ubuntu? For example, I see that Python is here. If I type python command in the terminal, it turns out that I have python version 2.7.12. But what about other popular programming and scripting languages like Ruby, Perl, C, Lua, awk, Java, PHP, etc. etc. Should I try to launch them in the terminal or try something like language --version one by one, or is there a better way to know this?










share|improve this question















How do I know what programming languages (I mean their compilers and interpreters) are already pre-installed in Ubuntu? For example, I see that Python is here. If I type python command in the terminal, it turns out that I have python version 2.7.12. But what about other popular programming and scripting languages like Ruby, Perl, C, Lua, awk, Java, PHP, etc. etc. Should I try to launch them in the terminal or try something like language --version one by one, or is there a better way to know this?







python programming ruby c preinstallation






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 22 '18 at 4:33









Yufenyuy Veyeh Dider

1,5454924




1,5454924










asked Jul 3 '17 at 13:37









A. N. OtherA. N. Other

1328




1328












  • You cannot "install" a language on any system .. there are interpreters and compilers you install and since they are sometimes similar sometimes really different I don't think there is a simple way to check for all of them rather than checking one by one
    – derHugo
    Jul 3 '17 at 13:46


















  • You cannot "install" a language on any system .. there are interpreters and compilers you install and since they are sometimes similar sometimes really different I don't think there is a simple way to check for all of them rather than checking one by one
    – derHugo
    Jul 3 '17 at 13:46
















You cannot "install" a language on any system .. there are interpreters and compilers you install and since they are sometimes similar sometimes really different I don't think there is a simple way to check for all of them rather than checking one by one
– derHugo
Jul 3 '17 at 13:46




You cannot "install" a language on any system .. there are interpreters and compilers you install and since they are sometimes similar sometimes really different I don't think there is a simple way to check for all of them rather than checking one by one
– derHugo
Jul 3 '17 at 13:46










4 Answers
4






active

oldest

votes


















3














An article in Ubuntu's own help pages points out five (perl, python, ruby, awk, and sed) are installed by default.






share|improve this answer























  • Ruby? Note that the community wiki used to be editable by anyone, so it's not authoritative.
    – muru
    May 22 '18 at 1:05



















3














As of latest LTS release , 16.04, Ubuntu comes with Perl 5, GNU awk (used to be mawk), Python 2 and 3 by default. Not entirely sure about C compiler. You may need build-essential package installed



For everything else, use apt-cache policy **package-name** to see if it is installed. You can also view the release manifest files as described in this answer:https://askubuntu.com/a/48894/295286






share|improve this answer

















  • 1




    There are also Bash and dash.
    – Chai T. Rex
    May 22 '18 at 7:05












  • @ChaiT.Rex Well, they're shells technically, both conforming to standard Shell Command Language specifications, but bash having more advanced syntax. So technically they're not "programming languages" as in C or Python sense, but yes good mention of the two.
    – Sergiy Kolodyazhnyy
    May 22 '18 at 7:40



















1














type whereis [program]. if nothing shows up then it is not installed. A rather silly way,but still usable.






share|improve this answer





























    1














    I wrote a small bash script. Its very basic but its something



    #!/usr/bin/env bash

    languages="php python go perl mysql c c++ java"
    binaries="ls /usr/bin"

    for i in $languages ; do
    for j in $($binaries); do
    if [[ $i == $j ]]; then
    echo $i
    fi
    done
    done





    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%2f931583%2fhow-do-i-know-what-programming-languages-are-pre-installed-in-ubuntu%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      3














      An article in Ubuntu's own help pages points out five (perl, python, ruby, awk, and sed) are installed by default.






      share|improve this answer























      • Ruby? Note that the community wiki used to be editable by anyone, so it's not authoritative.
        – muru
        May 22 '18 at 1:05
















      3














      An article in Ubuntu's own help pages points out five (perl, python, ruby, awk, and sed) are installed by default.






      share|improve this answer























      • Ruby? Note that the community wiki used to be editable by anyone, so it's not authoritative.
        – muru
        May 22 '18 at 1:05














      3












      3








      3






      An article in Ubuntu's own help pages points out five (perl, python, ruby, awk, and sed) are installed by default.






      share|improve this answer














      An article in Ubuntu's own help pages points out five (perl, python, ruby, awk, and sed) are installed by default.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited May 21 '18 at 23:01









      K7AAY

      3,91221544




      3,91221544










      answered May 21 '18 at 19:56









      Yemi BeduYemi Bedu

      462




      462












      • Ruby? Note that the community wiki used to be editable by anyone, so it's not authoritative.
        – muru
        May 22 '18 at 1:05


















      • Ruby? Note that the community wiki used to be editable by anyone, so it's not authoritative.
        – muru
        May 22 '18 at 1:05
















      Ruby? Note that the community wiki used to be editable by anyone, so it's not authoritative.
      – muru
      May 22 '18 at 1:05




      Ruby? Note that the community wiki used to be editable by anyone, so it's not authoritative.
      – muru
      May 22 '18 at 1:05













      3














      As of latest LTS release , 16.04, Ubuntu comes with Perl 5, GNU awk (used to be mawk), Python 2 and 3 by default. Not entirely sure about C compiler. You may need build-essential package installed



      For everything else, use apt-cache policy **package-name** to see if it is installed. You can also view the release manifest files as described in this answer:https://askubuntu.com/a/48894/295286






      share|improve this answer

















      • 1




        There are also Bash and dash.
        – Chai T. Rex
        May 22 '18 at 7:05












      • @ChaiT.Rex Well, they're shells technically, both conforming to standard Shell Command Language specifications, but bash having more advanced syntax. So technically they're not "programming languages" as in C or Python sense, but yes good mention of the two.
        – Sergiy Kolodyazhnyy
        May 22 '18 at 7:40
















      3














      As of latest LTS release , 16.04, Ubuntu comes with Perl 5, GNU awk (used to be mawk), Python 2 and 3 by default. Not entirely sure about C compiler. You may need build-essential package installed



      For everything else, use apt-cache policy **package-name** to see if it is installed. You can also view the release manifest files as described in this answer:https://askubuntu.com/a/48894/295286






      share|improve this answer

















      • 1




        There are also Bash and dash.
        – Chai T. Rex
        May 22 '18 at 7:05












      • @ChaiT.Rex Well, they're shells technically, both conforming to standard Shell Command Language specifications, but bash having more advanced syntax. So technically they're not "programming languages" as in C or Python sense, but yes good mention of the two.
        – Sergiy Kolodyazhnyy
        May 22 '18 at 7:40














      3












      3








      3






      As of latest LTS release , 16.04, Ubuntu comes with Perl 5, GNU awk (used to be mawk), Python 2 and 3 by default. Not entirely sure about C compiler. You may need build-essential package installed



      For everything else, use apt-cache policy **package-name** to see if it is installed. You can also view the release manifest files as described in this answer:https://askubuntu.com/a/48894/295286






      share|improve this answer












      As of latest LTS release , 16.04, Ubuntu comes with Perl 5, GNU awk (used to be mawk), Python 2 and 3 by default. Not entirely sure about C compiler. You may need build-essential package installed



      For everything else, use apt-cache policy **package-name** to see if it is installed. You can also view the release manifest files as described in this answer:https://askubuntu.com/a/48894/295286







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Jul 3 '17 at 13:44









      Sergiy KolodyazhnyySergiy Kolodyazhnyy

      70.1k9145307




      70.1k9145307








      • 1




        There are also Bash and dash.
        – Chai T. Rex
        May 22 '18 at 7:05












      • @ChaiT.Rex Well, they're shells technically, both conforming to standard Shell Command Language specifications, but bash having more advanced syntax. So technically they're not "programming languages" as in C or Python sense, but yes good mention of the two.
        – Sergiy Kolodyazhnyy
        May 22 '18 at 7:40














      • 1




        There are also Bash and dash.
        – Chai T. Rex
        May 22 '18 at 7:05












      • @ChaiT.Rex Well, they're shells technically, both conforming to standard Shell Command Language specifications, but bash having more advanced syntax. So technically they're not "programming languages" as in C or Python sense, but yes good mention of the two.
        – Sergiy Kolodyazhnyy
        May 22 '18 at 7:40








      1




      1




      There are also Bash and dash.
      – Chai T. Rex
      May 22 '18 at 7:05






      There are also Bash and dash.
      – Chai T. Rex
      May 22 '18 at 7:05














      @ChaiT.Rex Well, they're shells technically, both conforming to standard Shell Command Language specifications, but bash having more advanced syntax. So technically they're not "programming languages" as in C or Python sense, but yes good mention of the two.
      – Sergiy Kolodyazhnyy
      May 22 '18 at 7:40




      @ChaiT.Rex Well, they're shells technically, both conforming to standard Shell Command Language specifications, but bash having more advanced syntax. So technically they're not "programming languages" as in C or Python sense, but yes good mention of the two.
      – Sergiy Kolodyazhnyy
      May 22 '18 at 7:40











      1














      type whereis [program]. if nothing shows up then it is not installed. A rather silly way,but still usable.






      share|improve this answer


























        1














        type whereis [program]. if nothing shows up then it is not installed. A rather silly way,but still usable.






        share|improve this answer
























          1












          1








          1






          type whereis [program]. if nothing shows up then it is not installed. A rather silly way,but still usable.






          share|improve this answer












          type whereis [program]. if nothing shows up then it is not installed. A rather silly way,but still usable.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 2 '17 at 23:03









          CamdenCamden

          3671414




          3671414























              1














              I wrote a small bash script. Its very basic but its something



              #!/usr/bin/env bash

              languages="php python go perl mysql c c++ java"
              binaries="ls /usr/bin"

              for i in $languages ; do
              for j in $($binaries); do
              if [[ $i == $j ]]; then
              echo $i
              fi
              done
              done





              share|improve this answer


























                1














                I wrote a small bash script. Its very basic but its something



                #!/usr/bin/env bash

                languages="php python go perl mysql c c++ java"
                binaries="ls /usr/bin"

                for i in $languages ; do
                for j in $($binaries); do
                if [[ $i == $j ]]; then
                echo $i
                fi
                done
                done





                share|improve this answer
























                  1












                  1








                  1






                  I wrote a small bash script. Its very basic but its something



                  #!/usr/bin/env bash

                  languages="php python go perl mysql c c++ java"
                  binaries="ls /usr/bin"

                  for i in $languages ; do
                  for j in $($binaries); do
                  if [[ $i == $j ]]; then
                  echo $i
                  fi
                  done
                  done





                  share|improve this answer












                  I wrote a small bash script. Its very basic but its something



                  #!/usr/bin/env bash

                  languages="php python go perl mysql c c++ java"
                  binaries="ls /usr/bin"

                  for i in $languages ; do
                  for j in $($binaries); do
                  if [[ $i == $j ]]; then
                  echo $i
                  fi
                  done
                  done






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 1 at 12:01









                  Faiz KhanFaiz Khan

                  1113




                  1113






























                      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.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • 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%2f931583%2fhow-do-i-know-what-programming-languages-are-pre-installed-in-ubuntu%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

                      Human spaceflight

                      Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                      張江高科駅