MathWorksUpdateInstaller and R2025a in Linux

조회 수: 64 (최근 30일)
DG
DG 2025년 7월 24일
편집: Walter Roberson 2025년 8월 4일
Hi!
Until now (e.g., with R2024b), whenever I needed to update my MATLAB in Linux, I used to run
sudo /usr/local/MATLAB/R2024b/bin/glnxa64/MathWorksUpdateInstaller
but I cannot find the equivalent executable for R2025a. Did it change name/location? Or what is the suggested update approach, now?
Note that I can't simply run the updater from the MATLAB desktop, because as normal user I don't have privilegies to write in the MATLAB root directory. And I can't start MATLAB as root, either, because of the name in the license.
Thanks in advance!
  댓글 수: 7
Josh G.
Josh G. 2025년 7월 25일
After looking into this a little more, it looks like MathWorksUpdateInstaller has moved to ~/.MathWorks/ServiceHost/-mw_shared_installs/v2025.5.1.1/bin/glnxa64/. But if I try running it by itself, with or without sudo, with or without Matlab running already, it runs into error 1804.
Star Strider
Star Strider 2025년 7월 25일
Having MATLAB open is probably required. When I updated R2025a earlier this week, I just clicked on the 'notifications' (bell) icon in the upper-right corner of the MATLAB GUI, then scrolled down to and clicked on 'Install Updates'. The updater closed MATLAB, installed Update 1, and re-launched MATLAB when it finished. (Ubuntu 24.04)
I'm not at all certain that I initially installed R2025a 'correctly'. Whatever I did, everything seems to worrk.
Some sort of clarification (extensive discussion) from TMW on all of this would be extremely helpful, especially for those of us who are relatively new to Linux.

댓글을 달려면 로그인하십시오.

채택된 답변

Josh G.
Josh G. 2025년 7월 25일
편집: Josh G. 2025년 7월 25일
I was able to get the update installed. For context, this is on an enterprise shared license system, so named user licenses may have slightly different paths.
MathWorksUpdateInstaller, when launched from within Matlab, is passed a bunch of arguments: destination, entitlement ID, and a few other things. You can see this if you open htop in a terminal and find the processes that are launched when you open the updater. Apparently it's now necessary to pass in at least the destination, and from there the updater can figure out the other information it needs.
With Matlab R2025a open, from within ~/.MathWorks/ServiceHost/-mw_shared_installs/v2025.5.1.1/bin/glnxa64, I ran
sudo ./MathWorksUpdateInstaller --destination=/usr/local/MATLAB/R2025a
I then closed Matlab when the update installer window launched, and the update completed successfully. I'm not sure if it's necessary to have Matlab open when you do this or not; as of R2025a, Matlab now seems to launch a server and a client. The server may need to be running when MathWorksUpdateInstaller is launched, but this would need someone else to test and verify.
  댓글 수: 2
DG
DG 2025년 7월 26일
편집: DG 2025년 7월 27일
Thanks @Josh G., that works indeed. I ran the installer with MATLAB closed, I can confirm there's no need for it to be open. The only minor issue is that, after the installation was complete, it launched MATLAB as root without asking about it.
Thanks again!
scivision
scivision 2025년 8월 4일
편집: Walter Roberson 2025년 8월 4일
Thanks Josh G, based on your information I made a platform-agnostic Matlab release upgrade script: https://github.com/geospace-code/matlab-stdlib/blob/main/scripts/MatlabReleaseUpgrade.m

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2025a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by