Ubuntu – How to install Octave 4.0.0 in Ubuntu 14.04


I am using Ubuntu 14.04.2. I want to install the latest version of Octave (Octave 4.0.0 ). But in official Ubuntu repository ,there is only octave version 3.8 available for download/install.

How can I install Octave 4.0.0 safely/easily in Ubuntu 14.04.2?

I don't want to install/compile it directly from source which is
available at official website, because I feel it is not easy method to

Best Answer

You have two options:

  1. Use the octave ppa, which already has the 4.0 version. You can install octave like this:

    sudo add-apt-repository ppa:octave/stable
    sudo apt-get update
    sudo apt-get install octave
  2. Download and compile the sources yourself:

    sudo apt-get build-dep octave
    wget ftp://ftp.gnu.org/gnu/octave/octave-4.0.0.tar.gz
    tar xf octave-4.0.0.tar.gz
    cd octave-4.0.0/
    sudo make install