How-To : Install Julia on Ubuntu 22.04

Monitor Vectors by Vecteezy

One of the ways to install Julia is by downloading it manually; another is via Snap. 

Manual download has the advantage of having access to the latest stable version. The snap version might lag behind.

Download Manually

01. Visit the Julia download page and select the stable release. It is recommended to use the latest stable version as they are compatible with older versions.

02. At the time of this writing, the latest stable version is v1.8.0, download it using the following command.

$ wget

02. Extract the package. This is only a recommendation, but you can extract the Julia package to the /usr/local directory.

$ sudo rm -rf /usr/local/julia 
$ sudo tar -C /usr/local -xzf julia-1.8.0-linux-x86_64.tar.gz
$ sudo mv /usr/local/julia-1.8.0 /usr/local/julia

03. Return to the non-root user, in this example is called geek.

$ export PATH=$PATH:/usr/local/julia/bin

04. Test Julia by running the executable. This will open the interactive command-line REPL (read-eval-print loop). 

$ julia

05. Type the string pi and see what it returns.

julia> pi

06. To exit the REPL either use “Ctrl + C” or type exit()

Via Snap

01.  Install Julia using snap

$ sudo snap install --classic julia

02. Test Julia by executing the julia command. This will open the interactive command-line REPL (read-eval-print loop). Note that the version is older than the one we used when downloaded manually.

Congratulations! You have successfully installed Julia. The journey has just begun and we will explore and learn Julia in the next tutorial.

Uninstalling Julia

If installed via Snap

$ sudo snap remove julia

If installed by a downloaded package, remove the Julia directory.

$ rm -rf julia-1.8.0

For enquiries, product placements, sponsorships, and collaborations, connect with us at We'd love to hear from you!