How do I know what programming languages are pre-installed in Ubuntu?
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
add a comment |
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
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
add a comment |
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
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
python programming ruby c preinstallation
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
add a comment |
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
add a comment |
4 Answers
4
active
oldest
votes
An article in Ubuntu's own help pages points out five (perl, python, ruby, awk, and sed) are installed by default.
Ruby? Note that the community wiki used to be editable by anyone, so it's not authoritative.
– muru
May 22 '18 at 1:05
add a comment |
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
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, butbash
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
add a comment |
type whereis [program]
. if nothing shows up then it is not installed. A rather silly way,but still usable.
add a comment |
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
An article in Ubuntu's own help pages points out five (perl, python, ruby, awk, and sed) are installed by default.
Ruby? Note that the community wiki used to be editable by anyone, so it's not authoritative.
– muru
May 22 '18 at 1:05
add a comment |
An article in Ubuntu's own help pages points out five (perl, python, ruby, awk, and sed) are installed by default.
Ruby? Note that the community wiki used to be editable by anyone, so it's not authoritative.
– muru
May 22 '18 at 1:05
add a comment |
An article in Ubuntu's own help pages points out five (perl, python, ruby, awk, and sed) are installed by default.
An article in Ubuntu's own help pages points out five (perl, python, ruby, awk, and sed) are installed by default.
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
add a comment |
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
add a comment |
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
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, butbash
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
add a comment |
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
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, butbash
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
add a comment |
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
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
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, butbash
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
add a comment |
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, butbash
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
add a comment |
type whereis [program]
. if nothing shows up then it is not installed. A rather silly way,but still usable.
add a comment |
type whereis [program]
. if nothing shows up then it is not installed. A rather silly way,but still usable.
add a comment |
type whereis [program]
. if nothing shows up then it is not installed. A rather silly way,but still usable.
type whereis [program]
. if nothing shows up then it is not installed. A rather silly way,but still usable.
answered Aug 2 '17 at 23:03
CamdenCamden
3671414
3671414
add a comment |
add a comment |
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
add a comment |
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
add a comment |
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
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
answered Jan 1 at 12:01
Faiz KhanFaiz Khan
1113
1113
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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