MATLAB Answers

How do I uninstall MATLAB products on a UNIX or Linux machine?

1,834 views (last 30 days)
I would like to uninstall MATLAB on a UNIX or Linux machine.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 1 Mar 2019
There is no uninstaller for MATLAB on UNIX or Linux. To remove MATLAB you simply need to delete the MATLAB installation following the instructions below:
1. If you are running a network license manager for MATLAB, shut down the license manager using the 'lmdown' script located in MATLAB's etc directory. If this folder does not exist, you are not running the network license manager. For example:
[root@localhost ~] /usr/local/MATLAB/R2010b/etc/lmdown
2. You should also remove any license manager files in the /var/tmp directory. These files should begin with 'lm_TMW', ex:
[root@localhost ~] rm /var/tmp/lm_TMW*
3. Remove the entire root MATLAB directory using the 'rm -rf' command, ex:
[root@localhost ~] rm -rf /usr/local/MATLAB/R2010b
4. Remove any symlinks to MATLAB binaries on the path, ex:
[root@localhost ~] rm /usr/local/bin/matlab /usr/local/bin/mcc /usr/local/bin/mex /usr/local/bin/mbuild

  2 Comments

Donald Dansereau
Donald Dansereau on 21 Mar 2017
Don't forget to remove the downloaded files.
I've been running the linux install script as sudo for years, meaning the download files have been very stealthily accumulating in /root/Downloads. If you're in the same boat, try:
sudo rm -r /root/Downloads/MathWorks
... or if you don't install as root, do
rm -r ~/Downloads/MathWorks
Robin chacko
Robin chacko on 9 Oct 2018
What should I do If the lmdown script is not found in the MATLAB's etc directory.?

Sign in to comment.

More Answers (5)

Amine MATOUK
Amine MATOUK on 7 Nov 2016
Hello,
Instructions 1,2, and 4 didn't excute for me,
Thanks to explain.

  2 Comments

Steve Meeker
Steve Meeker on 7 Aug 2017
Hello , I have performed all these steps on Centos 7 and the files when I rerun tell me no such file in directory, I type matlab into the Konsole and 2016a comes right up ideas?
Walter Roberson
Walter Roberson on 7 Aug 2017
At the Konsole give the commands
which matlab
alias | grep matlab
and see what is returned. I suspect you might have an alias pointing to a different version.

Sign in to comment.


SGUNITN
SGUNITN on 23 Feb 2018
@Annie
use superuser in order to delete the files. It might be privilege issue. sudo su

  0 Comments

Sign in to comment.


peishenfei
peishenfei on 5 Apr 2018
Instructions 4, why does my file /usr/local/bin/mex points to /home/xxx/app/texlive/bin/x86_64-linux/mex? Thanks in advance

  0 Comments

Sign in to comment.


Tech Support
Tech Support on 13 Apr 2018
Hi Peishenfei,
If you are still experiencing this issue, please contact MathWorks support:
-Justin

  0 Comments

Sign in to comment.


Artsiom Krasilnikau
Artsiom Krasilnikau on 4 Jan 2020
А как этот матлаб в плане секса?

  1 Comment

Colin Fraser
Colin Fraser on 15 Jan 2020
Hi,
If you are still experiencing this issue, please contact MathWorks support:
-Colin Fraser

Sign in to comment.

Sign in to answer this question.

Tags

No tags entered yet.

Products