Skip to content

GNU/Linux

Contents

Distributions

The recommended way for installing Octave on GNU/Linux systems is via each distribution's package installation system. If this is for some reason not possible, or the available Octave version too old, consider using a distribution independent approach described below or build Octave from source.

Arch Linux

Main article: Octave for Arch Linux

bash
  pacman -S octave

Debian and Debian-based (such as Ubuntu)

Main article: Octave for Debian systems

bash
  apt install octave
  apt install octave-dev  # development files; liboctave-dev in older releases

Fedora

Main article: Octave for Red Hat Linux systems

bash
  dnf install octave
  dnf install octave-devel  # development files

Gentoo

bash
  emerge --ask sci-mathematics/octave

openSUSE and SUSE Linux Enterprise

Main article: Octave for openSUSE

bash
  zypper install octave
  zypper install octave-devel  # development files

Red Hat Enterprise/CentOS

Main article: Octave for Red Hat Linux systems

bash
  yum install epel-release
  yum install octave
  yum install octave-devel  # development files

If the above does not work, follow these instructions to set up your system to install packages from EPEL.

Slackware

Main article: Octave for Slackware

Distribution independent

Using a distribution independent approach is particularly useful if you have an older GNU/Linux distribution or if you do not have root access on your system. A common drawback of this approach is, that these solutions are running in some kind of sandbox. Thus limitations in the communication with the underlying system may exist. For example, executing system binaries outside the sandbox might be impossible.

Anaconda

bash
  conda create --name octave
  conda activate octave
  conda install -c conda-forge octave

Docker / Podman / Singularity

bash
  docker pull docker.io/gnuoctave/octave:10.3.0
  podman pull docker.io/gnuoctave/octave:10.3.0
singularity pull docker://gnuoctave/octave:10.3.0

mtmiller's version

bash
  docker pull docker.io/mtmiller/octave

Flatpak

bash
  flatpak install flathub org.octave.Octave

Guix

bash
  guix install octave

Homebrew on Linux

"Homebrew on Linux" was formerly a fork known as Linuxbrew. It is possible to install the current release of Octave or the development version and any needed dependencies within your home directory.

bash
  brew install octave

MXE

Snap

bash
  snap install octave

If you want to use a nightly snapshot build of the development branch of Octave, install from the edge channel

bash
  snap install --edge octave

Spack

bash
  spack install octave

Building from source

Main article: Building

See also

Retrieved from "https://wiki.octave.org/wiki/index.php?title=Octave_for_GNU/Linux&oldid=15446"

Categories: