How to Install the Latest GNU Octave 4.4 in Ubuntu 18.04

July 9, 2018 — 4 Comments

This quick tutorial shows you how to install the latest GNU Octave in Ubuntu 18.04 (or Ubuntu 16.04), while the Ubuntu repositories only provide an old version.

Since there’s no stable PPA contains the latest Octave packages, Flatpak package is the easiest way to get the numerical computation software running on Ubuntu.

Similar to Snap, Flatpak is an universal Linux package format that runs in sandbox.

1. First open terminal (Ctrl+Alt+T) and make sure Flatpak support is enabled by running command:

sudo apt-get install flatpak

Ubuntu 16.04 needs to add the Flatpak PPA first to install Flatpak framework.

2. Then add the Flathub repository, the best place to get Flatpak apps:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

3. Finally install GNU Octave 4.4 from the Flathub repository:

flatpak install flathub org.octave.Octave

It will take a few minutes downloading the flatpak package as well as dependency platform if you’re first time installing it.

Like normal applications, you can launch Octave from Gnome app launcher:

The flatpak co-exists with traditional Octave package. You can alternatively run it in command line:

flatpak run org.octave.Octave

Uninstall

You can remove the Octave flatpak package by running command:

flatpak uninstall org.octave.Octave

And remove flatpak support if you want:

sudo apt-get remove flatpak

I'm a freelance blogger who started using Ubuntu 5+ years ago and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me on Google Plus or email to ubuntuhandbook1@gmail.com

4 responses to How to Install the Latest GNU Octave 4.4 in Ubuntu 18.04

  1. error: Error searching remote flathub: Can’t find ref org.octave.Octave

  2. I am a new Ubuntu user and I find your blogs really helpful. Thanks for the excellent work.

  3. peter iosifidis October 8, 2018 at 10:29 am

    this seems rather sketchy.
    the files downloaded are >500mb , where octave is just about 220mb with everything (as of packs and GUI included)
    -R

    • Programs distributed using flatpaks, snaps and appimages, all contain the required dependencies bundled within the one package. This means that even though Octave itself might only require 220MB of data itself, the dependencies that normally assumes would be supplied by the Linux distro (such as libraries that Octave doesn’t supply) are instead bundled within the flatpak. So it’s bigger, but it means you don’t have rely on installing dependencies of a particular version which your distro might not supply.

Leave a Reply

Text formatting is available via select HTML.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

*