Get latest stable version of Octave

Other OSs:

  • Windows Octave installer
  • MacOS: brew install octave

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

flatpak install flathub org.octave.Octave

If that command errors, follow the Octave flatpack install


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.