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?
An article in Ubuntu's own help pages points out five (perl, python, ruby, awk, and sed) are installed by default.
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 installedFor 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/295286I wrote a small bash script. Its very basic but its something
type
whereis [program]
. if nothing shows up then it is not installed. A rather silly way,but still usable.