GNU Octave is a powerful open source programming language used to solve linear and non-linear mathematical problems and perform scientific calculations. It is available to download for free, and you can install it on Linux, Windows, and macOS.
There are several ways to install GNU Octave on Ubuntu: using Ubuntu Software, Flatpak, and via the Snap Store. Here’s how to get started.
What is GNU Octave?
An alternative to MATLAB, GNU Octave is a high-level math-oriented programming language that comes with 2D and 3D plotting and visualization tools. The tool comes under the terms of the GNU General Public License.
Octave offers its users the flexibility of using a command line interface or a GUI to plot graphs and visualize data.
Method 1: Install GNU Octave using Ubuntu software
If you are new to Linux and are not yet comfortable with the command line, you can install applications through a graphical software manager, such as Ubuntu Software.
Start Ubuntu Software from the applications menu and search for GNU Octave. This will provide you with all the available options. Select GNU Octave and click To install to begin the installation process.
Once you have successfully installed Octave, launch it from the applications menu to check if it works fine. You will see Octave’s welcome page after launching the application. On this page, click Next.
Check the box if you want to receive news related to the community and then click on Next.
Click Finish to close the settings box.
You can now start exploring Octave and familiarize yourself with its user interface. Enjoy!
Method 2: Install GNU Octave using Flatpak
To install GNU Octave via Flatpak, you must first install Flatpak on your system. Also, make sure to update and update the packages in Ubuntu before proceeding with the installation.
With Flatpak installed, add the Flathub repository with this command:
flatpak remote-add --if-not-exists flathub https:
An authentication dialog will open, asking you to authenticate with a password. Please provide the password to continue.
You can now install the latest version of Octave from Flathub. To do that, run the following command:
flatpak install flathub org.octave.Octave
Octave is quite a large package with a size of over 1 GB, so it may take some time to install.
Once installed, start Octave with the following command:
flatpak run org.octave.Octave
Alternatively, you can also launch the app directly from the apps menu.
Method 3: Install the GNU Octave Snap package
Snapshots are applications that ship with all their dependencies together. This allows snapshots to run on almost all Linux distributions from a single build. Shadow copies are preferred by most Linux users as they update automatically and are easy to roll back.
First, you need to install snapd on your machine. Then run the following command to install Octave:
sudo snap install octave
How to uninstall GNU Octave from Ubuntu
Whether you installed GNU Octave from Ubuntu Software, Flatpak, or Snap, uninstalling the program is a piece of cake.
To remove Octave installed via Ubuntu Software, start Ubuntu Software and search for GNU Octave in the list of installed applications.
To uninstall the application, click the Trash icon at the top right, next to permissions.
To confirm that you want to remove the app, click uninstall. This will completely remove Octave from your system.
To remove the GNU Octave Flatpak package, run:
flatpak uninstall org.octave.Octave
Similarly, if you want to remove the GNU Octave Snap package, issue the following command:
sudo snap remove octave
Perform scientific calculations efficiently with GNU Octave
Octave is a special purpose programming language that you can use for scientific calculations such as general data analysis, linear or non-linear equations, etc. The tool offers a rich mathematical toolbox and a concise syntax. The language is similar to MATLAB and therefore switching between the two languages is very easy.
Octave offers extensive graphical capabilities to visualize data for better understanding. With Octave, you can perform difficult calculations and create graphs with ease. The complete package is really useful for someone who has to do heavy scientific calculations frequently.