{"id":17523,"date":"2022-06-03T04:42:34","date_gmt":"2022-06-03T04:42:34","guid":{"rendered":"https:\/\/linuxways.net\/?p=17523"},"modified":"2022-06-03T04:42:34","modified_gmt":"2022-06-03T04:42:34","slug":"how-to-install-gnu-octave-on-debian","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/debian\/how-to-install-gnu-octave-on-debian\/","title":{"rendered":"How to Install GNU Octave on Debian"},"content":{"rendered":"<p>GNU Octave is a free software for scientific programming language. It has powerful mathematics-oriented syntax and visualization tools to solve a lot of mathematical problems. Its syntax is quite similar to Matlab. You can use its both GUI and the command line interface. GNU Octave runs on Windows, GNU\/Linux, macOS, and BSD.<\/p>\n<p>This post covers how to install GNU Octave on Debian OS. We will describe three different ways for the installation of GNU Octave on the Debian system. Let&#8217;s get started.<\/p>\n<p><strong>Note<\/strong>: All three installation methods explained here have been demonstrated on <strong>Debian 11 (bullseye) <\/strong>system.<\/p>\n<h2>Method#1 Installing GNU Octave through Apt (Command Line)<\/h2>\n<p>GNU Octave is available in the Debian official repositories. In the following method, we will install GNU Octave using Apt. Follow the steps below for installing GNU Octave through this method on your Debian machine:<\/p>\n<p>1. Update the package index through the command below in your Debian Terminal:<\/p>\n<pre>$ sudo apt update<\/pre>\n<p>Provide the sudo password if you are asked for it.<\/p>\n<p>2. Then for installing the GNU Octave, run the command below:<\/p>\n<pre>$ sudo apt install octave<\/pre>\n<p>It will display the name of the dependencies that will be installed along with the Octave installation. After that, it will ask for confirmation. Hit the &#8220;y&#8221; key on your keyboard to confirm the installation of all these packages.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"766\" height=\"486\" class=\"wp-image-17524\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/installing-gnu-octave-through-apt.png\" alt=\"Installing GNU Octave through Apt \" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/installing-gnu-octave-through-apt.png 766w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/installing-gnu-octave-through-apt-300x190.png 300w\" sizes=\"auto, (max-width: 766px) 100vw, 766px\" \/><\/p>\n<p>This should install GNU Octave along with the dependencies on your Debian system.<\/p>\n<p>3. To verify the GNU Octave installation, run the command below:<\/p>\n<pre>$ octave --version<\/pre>\n<p>The output shown in the following screenshot verifies that GNU Octave version <strong>6.2.0<\/strong> has been installed on our system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"685\" height=\"139\" class=\"wp-image-17525\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/octave-version.png\" alt=\"Octave version\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/octave-version.png 685w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/octave-version-300x61.png 300w\" sizes=\"auto, (max-width: 685px) 100vw, 685px\" \/><\/p>\n<h2>Method#2 Installing GNU Octave through Snap (Command Line)<\/h2>\n<p>In the following method, we will install GNU Octave through snap. Follow the steps below for installing GNU Octave through this method on your Debian machine:<\/p>\n<p>1. Update the package index through the command below in your Debian Terminal:<\/p>\n<pre>$ sudo apt update<\/pre>\n<p>Provide the sudo password if you are asked for it.<\/p>\n<p>2. Install snapd using the command below:<\/p>\n<pre>$ sudo apt install snapd<\/pre>\n<p>3. After that install the snapd runtime environment through the command below:<\/p>\n<pre>$ sudo snap install core<\/pre>\n<p>4. Then for installing the GNU Octave, run the command below:<\/p>\n<pre>$ sudo snap install octave<\/pre>\n<p>This command will install GNU Octave on your Debian machine.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"746\" height=\"69\" class=\"wp-image-17526\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/installing-gnu-octave-through-snap.png\" alt=\"Installing GNU Octave through snap\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/installing-gnu-octave-through-snap.png 746w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/installing-gnu-octave-through-snap-300x28.png 300w\" sizes=\"auto, (max-width: 746px) 100vw, 746px\" \/><\/p>\n<p>5. To verify the GNU Octave installation, run the command below:<\/p>\n<pre>$ snap run octave --version<\/pre>\n<p>The output shown in the following screenshot verifies that GNU Octave version <strong>7.1.0<\/strong> has been installed in our system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"138\" class=\"wp-image-17527\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/octave-version-1.png\" alt=\"Octave version\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/octave-version-1.png 680w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/octave-version-1-300x61.png 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/p>\n<p>6. After the installation, you can run GNU Octave through the command below:<\/p>\n<pre>$ snap run octave --gui<\/pre>\n<h2>Method#3 Installing GNU Octave through Software Center (GUI)<\/h2>\n<p>In this method, we will install GNU Octave through Debian Software Center. Follow the steps below for installing GNU Octave through this method on your Debian machine:<\/p>\n<p>1. Open Software Center in your system. To open it, hit the Windows key and type keyword <em>software<\/em> in the search bar. Then click the Software Center icon to launch it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"586\" height=\"264\" class=\"wp-image-17528\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/word-image-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/word-image-3.png 586w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/word-image-3-300x135.png 300w\" sizes=\"auto, (max-width: 586px) 100vw, 586px\" \/><\/p>\n<p>2. In the Software Center window, search for Octave using the search icon at the top left corner. Click the GNU Octave icon from the search results.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"593\" height=\"205\" class=\"wp-image-17529\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/word-image-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/word-image-4.png 593w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/word-image-4-300x104.png 300w\" sizes=\"auto, (max-width: 593px) 100vw, 593px\" \/><\/p>\n<p>Click the <strong>Install<\/strong> button to begin the installation of GNU Octave on your Debian system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"618\" height=\"223\" class=\"wp-image-17530\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/installing-gnu-octave-through-software-center.png\" alt=\"Installing GNU Octave through Software Center\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/installing-gnu-octave-through-software-center.png 618w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/installing-gnu-octave-through-software-center-300x108.png 300w\" sizes=\"auto, (max-width: 618px) 100vw, 618px\" \/><\/p>\n<p>Then provide the password for authentication and click <strong>Authenticate<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"405\" height=\"372\" class=\"wp-image-17531\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/word-image-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/word-image-5.png 405w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/word-image-5-300x276.png 300w\" sizes=\"auto, (max-width: 405px) 100vw, 405px\" \/><\/p>\n<p>This will start installing GNU Octave.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"617\" height=\"238\" class=\"wp-image-17532\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/word-image-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/word-image-6.png 617w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/word-image-6-300x116.png 300w\" sizes=\"auto, (max-width: 617px) 100vw, 617px\" \/><\/p>\n<p>Once GNU Octave is installed, you will see the following window. Click <strong>Launch<\/strong> to open the application.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"760\" height=\"220\" class=\"wp-image-17533\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/word-image-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/word-image-7.png 760w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/word-image-7-300x87.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/p>\n<p>You can also open the GNU application from the Applications menu. Hit the Windows key and type <em>octave<\/em> in the search bar. Next click the GNU Octave icon to open it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"409\" height=\"266\" class=\"wp-image-17534\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/word-image-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/word-image-8.png 409w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/word-image-8-300x195.png 300w\" sizes=\"auto, (max-width: 409px) 100vw, 409px\" \/><\/p>\n<p>For the first time you open GNU Octave on your system, you will be welcomed with the following window. Click <strong>Next<\/strong> to proceed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"556\" height=\"317\" class=\"wp-image-17535\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/word-image-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/word-image-9.png 556w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/word-image-9-300x171.png 300w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/><\/p>\n<p>Then the following window will appear. Click <strong>Finish<\/strong> to close it. <img loading=\"lazy\" decoding=\"async\" width=\"572\" height=\"451\" class=\"wp-image-17536\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/word-image-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/word-image-10.png 572w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/word-image-10-300x237.png 300w\" sizes=\"auto, (max-width: 572px) 100vw, 572px\" \/><\/p>\n<p>Now you can start using the GNU Octave on your Debian system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"757\" height=\"518\" class=\"wp-image-17537\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/gnu-octave-window.png\" alt=\"GNU Octave Window \" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/gnu-octave-window.png 757w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/06\/gnu-octave-window-300x205.png 300w\" sizes=\"auto, (max-width: 757px) 100vw, 757px\" \/><\/p>\n<h2>Uninstall\/Remove GNU Octave<\/h2>\n<p>If for some reason you want to remove GNU Octave from your Debian system, you can do so as follows:<\/p>\n<p>If GNU Octave has been installed using the Software Center or Apt, remove it using the command below:<\/p>\n<pre>$ sudo apt remove octave<\/pre>\n<p>If GNU Octave has been installed using the snap package, remove it using the command below:<\/p>\n<pre>$ sudo snap remove octave<\/pre>\n<p>Through any of the above-shared installation methods, you can easily have GNU Octave on your Debian OS. We\u2019ve also gone through how to remove GNU Octave from Debian if for some reason you want to remove it from your system.<\/p>","protected":false},"excerpt":{"rendered":"<p>GNU Octave is a free software for scientific programming language. It has powerful mathematics-oriented syntax and visualization tools to solve a lot of mathematical problems. Its syntax is&hellip;<\/p>","protected":false},"author":1,"featured_media":17595,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[122,800],"class_list":["post-17523","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","tag-debian-2","tag-gnu-octave"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/17523","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=17523"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/17523\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/17595"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=17523"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=17523"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=17523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}