Uninstalling octave from ubuntu 16.04 LTS
Solution 1
Gauri. I just successfully uninstalled Octave from my ubuntu 16.04 according to the solutions at http://installion.co.uk/ubuntu/xenial/universe/o/octave/uninstall/index.html.
I saw something is wrong in your code sudo apt-get autoremove octave
. The right way should be sudo apt-get remove --auto-remove octave
. Perhaps you could try it out and see if my suggestion works. Good luck!
Solution 2
If you installed Octave through the ./configure && make && sudo make install
process from source code, you can uninstall by entering the build directory where you ran sudo make install
, and running this command:
sudo make uninstall
EDIT: This is true as of version 3.8.0 because it has an uninstall
rule in its Makefile
. Please check if your version has the same, or similar, rule.
In order to determine whether such a rule exists, open up the Makefile
of the version of Octave source code you have downloaded, and look for the string uninstall:
. If so, it means you have an uninstall rule, and that you can run make uninstall
.
This Ask Ubuntu answer is the source of this information
Related videos on Youtube
![Zanna](https://i.stack.imgur.com/poWMH.jpg?s=256&g=1)
Zanna
Updated on September 18, 2022Comments
-
Zanna almost 2 years
I had downloaded the source code of GNU octave and had installed it using
make install
. However, the installation had some error, due to which it could not open the GUI on launching octave.For this reason I wanted to un-install the package.
For un-installing, I opened the software center. There in installed packages list, I could see GNU octave enlisted. On clicking on remove button, nothing happens.
Hence I tried to uninstall the package from command prompt using
sudo apt-get remove octave sudo apt-get autoremove octave
Still octave did not disappear from
/usr/local/bin
folder. So, I manually deleted it using:sudo rm -rf /usr/local/bin/octave sudo rm -rf /usr/local/lib/octave
Now when I again go back to software center, GNU octave is still enlisted as installed software.
I want to install it again, properly. For which I want to completely remove the previous installation.
My questions are:
- What else is required to completely remove octave
- How to correctly install it so that I can use its GUI efficiently
Note: the octave version is 4.0.1 Ubuntu version - 16.04 LTS
-
Kaz Wolfe over 7 yearsPlease edit your comment into into the post to make it easier to find.
-
sugab over 6 yearsHi @Liz, your Sixth line will install Octave from Ubuntu repository, not from the source, because it used apt-get. You should run
make
andmake install
afterconfigure
.