I want to install Octave on my Ubuntu LTS with apt-get
. The problem is that the official repositories list only Octave 3.0 and Octave 3.2, whereas the latest Octave is Octave 3.6.
How do I update the repositories of apt-get to get Octave 3.6?
I want to install Octave on my Ubuntu LTS with apt-get
. The problem is that the official repositories list only Octave 3.0 and Octave 3.2, whereas the latest Octave is Octave 3.6.
How do I update the repositories of apt-get to get Octave 3.6?
This PPA should solve your problem, provided you are running the latest 12.04.
Open Terminal
Ctrl-Alt-T
and type:For Ubuntu 20.04, see this answer.
The answer is quite simple. Go to the Octave downloads website and find the latest release of GNU Octave and download the .tar.gz file of it.
After this copy and paste the following terminal (CTRL+ALT+T) commands:
Where the 'x.x.x' refers to the version of GNU Octave you'd like to install, such as 3.6.3.
Just as an update: this PPA (maintained by a member of the Debian Octave Group) provides the latest Octave for a range of Ubuntu versions.
I am only "answering" this because I could not format in the comments. kudos to @izx and @Brenton Horne
For 14.0.4.2, I had to use a bit of both answers:
These made octave 4.0 run, but not with
--force-gui
was also required to get
--force-gui
to work.This does not use
apt-get
, but an alternative mechanism,flatpak
, which has its own elaborate installation instructions, depending on Linux distribution and desktop environment used.You can run the newest version of Octave (5.1.0 since March 2019) by running it as a Flatpak app. "Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux."
The installation procedure for the Octave package is described here: https://flathub.org/apps/details/org.octave.Octave (2 commands at bottom of page)
If you are on Ubuntu 16.04, You have to install flatpak first, then run Octave:
This downloads about 1.5 GB from the internet, because it installs KDE dependencies as well.
On my machine, it installs this:
Note that Octave 5.1.0 itself is only 117 MB.
To upgrade, I had to uninstall the octave flatpak, then run flatpak install.
Latest ppa is ppa:octave/stable.
https://launchpad.net/~octave/+archive/ubuntu/stable
This ppa is maitained by the "GNU Octave" team and has version 3.8.1 available for lucid and precise.