Ubuntu – Installing latest version of GNU Octave when I have already installed other version

aptoctavesoftware installationsoftware-uninstall

I have installed Gnu Octave by using apt-get install octave.
This installed version 4.0.3 on my machine.

I want to install the latest available version. How can I:

  1. Uninstall the version I have?
  2. Install the latest version?

Best Answer

  • For uninstalling GNU Octave you can run this command:

    sudo apt purge octave

    But you don't need to remove and then install latest version of Octave.

    You can easily upgrade that package with this commands:

    sudo add-apt-repository ppa:octave/stable
    sudo apt update
    sudo apt install octave

    These commands upgrade Octave to latest stable version of this software (with no need to remove current version).