Open In App

How to Install GNU Octave in Linux?

Last Updated : 30 Sep, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Octave is open-source, free available for many of the platforms. It is actually a High-level Language. It comes up with a text interface along with an experimental graphical interface. It is also used for various Machine Learning algorithms for solving various numeric problems. You can say that it is similar to MATLAB but slower than MATLAB.

We can easily solve operations like Matrix Multiplication, Transpose of a Matrix, or any other operation on Vector and Matrix very easily with just a few lines of code.

Steps to Install Octave on Linux

Step 1: Open the terminal and then add repository for Octave with below command and then press Enter.

sudo apt-add-repository ppa:octave/stable

adding-repository-for-octave

If you are facing an error for ‘apt-add-repository’ command not found like the below image which means that you have not installed the common properties or dependencies to use this command.

adding-common-properties

But it can be easily installed with the below command(after this run the previous command).

sudo apt install software-properties-common

Step 2: Now you have added the repository then with below command get all the package information from all configured sources:

sudo apt-get update

get-update

Step 3: Install the octave for your system with the below command.

sudo apt-get install octave

install-octave

Step 4: Now, you have successfully installed octave to your Linux system, launch octave with the octave command.

octave

launch-octave


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads