Get latest stable version of Octave

Other OSs:

  • Windows Octave installer
  • MacOS: brew install octave

For Linux, the GNU Octave PPA has the latest stable version of Octave. This is easier than compiling GNU Octave.

apt-add-repository ppa:octave/stable
apt update
apt install octave liboctave-dev

If system Octave is already installed, these commands will uninstall your old Octave and install the latest stable version of Octave.


add packages

Install Octave packages by typing in Octave:

pkg -verbose install -forge specfun

to install the specfun package, and so on. Prerequisite Octave Packages will automatically be installed, though outside libraries will need to be installed by you if required by an Octave package.

List packages

in Octave:

pkg list

The loaded packages have an asterisk next to their name.

Stop autoloading packages

Octave might get misconfigured to load all packages automatically at startup. This substantially slows down Octave startup time.

You can stop Octave package autoload.



Written by Michael Hirsch, Ph.D. //