{"id":47379,"date":"2024-10-17T08:31:30","date_gmt":"2024-10-17T08:31:30","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=47379"},"modified":"2026-02-21T14:01:25","modified_gmt":"2026-02-21T14:01:25","slug":"install-gnu-octave-ubuntu","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2024\/10\/install-gnu-octave-ubuntu\/","title":{"rendered":"How to Install GNU Octave 11.1.0 in Ubuntu 24.04 | 22.04"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/07\/octave-logo.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-42801\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/07\/octave-logo-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/07\/octave-logo-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/07\/octave-logo-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/07\/octave-logo-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/07\/octave-logo-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/07\/octave-logo.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>This tutorial shows you how to install the latest GNU Octave (version 11.1.0 updated) in all current Ubuntu releases, including <b>Ubuntu 22.04<\/b>, <b>Ubuntu 24.04<\/b>, and <b>Ubuntu 25.10<\/b>.<\/p>\n<p>GNU Octave is a free open-source scientific programming language, primarily intended for numerical computations. It features powerful mathematics-oriented syntax with built-in 2D\/3D plotting and visualization tools, cross-platform, and drop-in compatible with many Matlab scripts.<br \/>\n<!--more--><br \/>\nThe latest version of the programming language is now 11.1.0. Features in the 11 release series include:<\/p>\n<ul>\n<li>11 new functions: <code>_Exit<\/code>, <code>assert_equal<\/code>, <code>corrcov<\/code>, <code>dither<\/code>, <code>funm<\/code>, <code>mape<\/code>, <code>rms<\/code>, <code>rmse<\/code>, <code>trexc<\/code>, <code>xline<\/code>, <code>yline<\/code>.<\/li>\n<li>New <i>Editor Files<\/i> tab in the built-in File Browser.<\/li>\n<li>Use new default Octave command prompt.<\/li>\n<li>New <code>pkg search<\/code> command with regular expressions support.<\/li>\n<li>Convolution of short and wide arrays is from 10% to 150X faster.<\/li>\n<li>Many changes and improvements to other functions.<\/li>\n<li>Use SVG icons for better scaling support.<\/li>\n<\/ul>\n<p>For more changes, see the NEWS file in source page.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/gnuoctave93.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47749\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/gnuoctave93-700x478.webp\" alt=\"\" width=\"610\" height=\"417\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/gnuoctave93-700x478.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/gnuoctave93-300x205.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/gnuoctave93-768x525.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/gnuoctave93.webp 1303w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<h3>Install Octave (11.1.0 Updated) in Ubuntu Linux<\/h3>\n<p>Octave is available in Ubuntu system repository, but old.<\/p>\n<p>Besides building from the <a href=\"https:\/\/octave.org\/download\" target=\"_blank\" rel=\"noopener\">source tarball<\/a>, user can choose to either install <b>Flatpak package<\/b> or use <b>Ubuntu PPA<\/b>. Both are however unofficial.<\/p>\n<h4>Option 1: Install Octave via Flatpak<\/h4>\n<p>Flatpak is an universal Linux package format that runs in sandbox environments. The <a href=\"https:\/\/flathub.org\/apps\/org.octave.Octave\" target=\"_blank\" rel=\"noopener\">Octave as Flatpak<\/a> package so far supports both <code>amd64<\/code> (Intel\/AMD) and <code>arm64<\/code> (RasPi, Apple Silicon) platforms.<\/p>\n<p><b>Linux Mint 21\/22<\/b> with unverified Flatpaks enabled, and <b>Fedora Workstation<\/b>\u00a0with 3rd party repository enabled can search &amp; install the package from either Software Manager or GNOME Software.<\/p>\n<p>For Ubuntu &amp; Debian, first open up a terminal window (Ctrl+Alt+T), then run commands:<\/p>\n<ul>\n<li>Enable Flatpak package support by running command:\n<pre>sudo apt install flatpak<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-flatpak-noble.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-45732\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-flatpak-noble-700x501.webp\" alt=\"\" width=\"610\" height=\"437\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-flatpak-noble-700x501.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-flatpak-noble-300x215.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-flatpak-noble-768x550.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-flatpak-noble.webp 786w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/li>\n<li>Then, add the Flathub repository which hosts the software package:\n<pre>flatpak remote-add --if-not-exists flathub https:\/\/dl.flathub.org\/repo\/flathub.flatpakrepo<\/pre>\n<p>For other Linux, see the official <a href=\"https:\/\/flatpak.org\/setup\/\" target=\"_blank\" rel=\"noopener\">setup guide<\/a> to enable Flatpak support.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/flathub-add.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47289\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/flathub-add-700x257.webp\" alt=\"\" width=\"610\" height=\"224\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/flathub-add-700x257.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/flathub-add-300x110.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/09\/flathub-add.webp 706w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/li>\n<li>Finally, run command to install the Octave Flatpak package:\n<pre>flatpak install flathub org.octave.Octave<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/flatpak-octave.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47381\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/flatpak-octave-700x397.webp\" alt=\"\" width=\"610\" height=\"346\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/flatpak-octave-700x397.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/flatpak-octave-300x170.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/flatpak-octave-768x436.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/flatpak-octave.webp 914w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/li>\n<\/ul>\n<p>After installation, either search for &amp; launch it from start menu or Gnome overview (log out and back in if app icon not visible), or use the command below to start it from terminal:<\/p>\n<pre>flatpak run org.octave.Octave<\/pre>\n<p>To check updates for the package, use command:<\/p>\n<pre>flatpak update org.octave.Octave<\/pre>\n<h4>Option 2: Install GNU Octave via Ubuntu PPA<\/h4>\n<p>The software used to have an official PPA but discontinued. For the most recent releases, I&#8217;ve made the native .deb packages into this <a href=\"https:\/\/launchpad.net\/~ubuntuhandbook1\/+archive\/ubuntu\/octave\" target=\"_blank\" rel=\"noopener\">unofficial PPA<\/a> with Ubuntu 22.04, Ubuntu 24.04, and Ubuntu 25.10 on <code>amd64<\/code> and <code>arm64<\/code>\/<code>armhf<\/code> platforms support.<\/p>\n<p><b>NOTE: The PPA package is backported from <a href=\"https:\/\/launchpad.net\/debian\/+source\/octave\" target=\"_blank\" rel=\"noopener\">Debian upstream<\/a> but without well testing! Please let me know if it&#8217;s outdated.<\/b><\/p>\n<p>1. To add the PPA, open terminal (Ctrl+Alt+T) and run command:<\/p>\n<pre>sudo add-apt-repository ppa:ubuntuhandbook1\/octave<\/pre>\n<p><i>Type user password (no visual feedback) when it asks and hit Enter to continue<\/i>.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/octave-ppa.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47382\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/octave-ppa-700x384.webp\" alt=\"\" width=\"610\" height=\"335\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/octave-ppa-700x384.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/octave-ppa-300x164.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/octave-ppa.webp 706w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>2. Then, either use &#8220;Software Updater&#8221; to update Octave package if an old .deb package was installed.<\/p>\n<p>Or, use the command below to install the package:<\/p>\n<pre>sudo apt install octave<\/pre>\n<p><b>NOTE: Some Ubuntu based systems, e.g., Linux Mint, need to run command <code>sudo apt update<\/code> to manually refresh cache after adding PPA.<\/b><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/11\/apt-octave.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44668\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/11\/apt-octave-600x407.webp\" alt=\"\" width=\"600\" height=\"407\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/11\/apt-octave-600x407.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/11\/apt-octave-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/11\/apt-octave-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/11\/apt-octave.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>After installed the package, search for and launch from start menu (or GNOME overview). And, use &#8220;Software Updater&#8221; to install updates if any.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/launch-octave.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-47383\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/launch-octave.webp\" alt=\"\" width=\"507\" height=\"276\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/launch-octave.webp 507w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/launch-octave-300x163.webp 300w\" sizes=\"auto, (max-width: 507px) 100vw, 507px\" \/><\/a><\/p>\n<h3>Uninstall Octave<\/h3>\n<p>To uninstall Octave Flatpak package, open terminal (Ctrl+Alt+T) and run command:<\/p>\n<pre>flatpak uninstall --delete-data org.octave.Octave<\/pre>\n<p>Also run <code>flatpak uninstall --unused<\/code> will remove useless run-time libraries.<\/p>\n<p>To uninstall the Octave <code>.deb<\/code> package, run command:<\/p>\n<pre>sudo apt remove --autoremove octave<\/pre>\n<p>And, remove the PPA either by running command:<\/p>\n<pre>sudo add-apt-repository --remove ppa:ubuntuhandbook1\/octave<\/pre>\n<p>or by using &#8220;Software &amp; Updates&#8221; to remove source line under &#8220;Other Software&#8221; tab.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/remove-octave-ppa.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47384\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/remove-octave-ppa-700x430.webp\" alt=\"\" width=\"610\" height=\"375\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/remove-octave-ppa-700x430.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/remove-octave-ppa-300x184.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/remove-octave-ppa-768x472.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/10\/remove-octave-ppa.webp 1006w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows you how to install the latest GNU Octave (version 11.1.0 updated) in all current Ubuntu releases, including Ubuntu 22.04, Ubuntu 24.04, and Ubuntu 25.10. GNU Octave is a free open-source scientific programming language, primarily intended for numerical computations. It features powerful mathematics-oriented syntax with built-in 2D\/3D plotting and visualization tools, cross-platform, and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":42801,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[2086],"class_list":["post-47379","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-programming"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/47379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=47379"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/47379\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/42801"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=47379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=47379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=47379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}