How do I uninstall MATLAB or other MathWorks products on a Linux machine?
1.830 views (last 30 days)
Show older comments
MathWorks Support Team
on 15 Sep 2011
Commented: ADRIÀ
on 24 Oct 2022
I would like to uninstall MATLAB or other MathWorks Products on or Linux machine.
Accepted Answer
MathWorks Support Team
on 19 Jan 2021
Edited: MathWorks Support Team
on 13 Apr 2021
There is no uninstaller for MathWorks products on Linux. To remove MATLAB, you simply need to delete the MATLAB installation following the instructions below:
1. Remove the entire root directory using the 'rm -rf' command, ex:
[root@localhost ~] rm -rf /usr/local/MATLAB/R2010b
2. Remove any symlinks to binaries on the path, ex:
[root@localhost ~] rm /usr/local/bin/matlab /usr/local/bin/mcc /usr/local/bin/mex /usr/local/bin/mbuild
6 Comments
More Answers (4)
Amine MATOUK
on 7 Nov 2016
Hello,
Instructions 1,2, and 4 didn't excute for me,
Thanks to explain.
2 Comments
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.
SGUNITN
on 23 Feb 2018
@Annie
use superuser in order to delete the files. It might be privilege issue. sudo su
0 Comments
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
Tech Support
on 13 Apr 2018
Edited: MathWorks Support Team
on 19 Jan 2021
Hi Peishenfei,
If you are still experiencing this issue, please contact MathWorks support:
-Justin
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!