This question already has an answer here:

How can I uninstall matlab from Ubuntu 14.04? Its not a licensed one I guess.

When I run: sudo apt-get purge matlab-support, it shows: Matlab not installed

Also tried sudo apt-get purge matlab

Can anyone please help me?

marked as duplicate by David Foerster, edwinksl, Ravexina, user364819, WinEunuuchs2Unix May 13 '17 at 1:04

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    For an answer you will need to provide an answer to "How did you install it?". If not through apt then purge obviously does not work. Manual install? See if there is an uninstall script otherwise you use "rm" – Rinzwind May 12 '17 at 5:44
  • Firstly , I unzipped the file using unzip "FILE" – Harish Bodduna May 12 '17 at 6:50
  • Then , using sudo ./ install i installed it. – Harish Bodduna May 12 '17 at 6:50
  • @HarishBodduna since you did not install using apt, you cannot remove using apt. – user535733 May 12 '17 at 11:39

Try this :)

cd to etc directory

sudo ./lmdown or sudo bash lmdown

cd back to root

sudo rm /var/tmp/lm_TMW*
rm /usr/local/bin/matlab /usr/local/bin/mcc /usr/local/bin/mex /usr/local/bin/mbuild /usr/local/bin/matlab /usr/local/bin/mex
sudo apt-get purge matlab-support 


sudo apt-get purge --auto-remove matlab-support


let me know if this works

  • sudo ./lmdown not working neither sudo bash lmdown – Harish Bodduna May 12 '17 at 6:52
  • does it work with out it ? – MeganFoxz May 12 '17 at 6:53
  • If it didn't work maybe its not there to begin with , try the rest of the commands and skip the first one and let me know what happens – MeganFoxz May 12 '17 at 8:05

Not the answer you're looking for? Browse other questions tagged or ask your own question.