How to uninstall a support package after deletion of its files?

Dear all,
I am using MATLAB on Linux, where the support packages (add-ons for HW support) are installed under the "/home/<username>/Documents/MATLAB/SupportPackages/R2025a" directory. I deleted the "/home/<username>/Documents/MATLAB" directory with all its content, so upon the next MATLAB launch, I received the following error:
Error using getExamplesFcnAndArgsForBaseCode
Expected input number 2, spRoot, to be nonempty.
Error in matlabshared.supportpkg.internal.ssi.util.getExamplesFcnAndArgsForBaseCode
Error in getSupportPackagesToAddDocumentation (line 27)
openExamplesFcn = matlabshared.supportpkg.internal.ssi.util.getExamplesFcnAndArgsForBaseCode(currentBaseCode, sproot);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in matlab.internal.addons.UiMessageHandler.handleAddSetupAndOpenDocToSupportPackages (line 324)
spkgWithExamples = getSupportPackagesToAddDocumentation();
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I closed MATLAB, created a directory "/home/<username>/Documents/MATLAB/SupportPackages/R2025a" and launched the MATLAB again.
There was no error, but one of the blocks in my simulink model would say "you do not have this add-on installed".
In the "Add-on manager" I still can see this add-on, and on my attempts to uninstall it (to further reinstall) MATLAB tries to delete it forever (possibly due to that I deleted the add-on files before).
It is also not poissible to install the add-on with the "Add-on explorer" because, I guess, it thinks that the add-on is installed and working fine.
Is there a way to delete the add-on manually and install it back?
Thank you!

4 Commenti

Contact Mathworks at <Product Support Page>. They support installation issues.
Clearly in the future, use the MATLAB AddOns interface to manage them, don't bypass it....
Thank you for your comment, @dpb!
I did not intend to delete the support packages, I thought these were some cache/rubbish files (until I realised there was a directory called "SupportPackages" which would stop me)
I thought to open a support case, but I have a couple of them open now, so I decided to instead ask the community
I will for sure ask the support some time later if nobody answers here and will leave a note.
dpb
dpb il 17 Set 2025
Modificato: dpb il 17 Set 2025
The Answers forum isn't official support channel and it's unlikely even if some Mathworks staff person does chance upon the question they will know the specific steps you'll need to follow to get by the internal checks. It's even more unlikely a respondent will.
@dpb thank you for your comment! Then I for sure will contact the support and leave the solution here after the issue is resolved.

Accedi per commentare.

 Risposta accettata

Sergei
Sergei il 9 Ott 2025
Modificato: Sergei il 10 Ott 2025
Hello again!
I have contacted MATLAB support for the solution, and here it is:
This is a known problem. To re-install the support package, sequentially run the following commands in any directory:
In my case the matlab version is R2025a, the product is SoC_Blockset_Support_Package_for_AMD_FPGA_and_SoC_Devices
Matlab root can be found by running "matlabroot" command in matlab Command Window.
Thank you!

1 Commento

+1 I knew this one would take Mathworks to know what had to get cleared/set in order to get around whatever traces were being left that installer couldn't get by on its own.

Accedi per commentare.

Più risposte (1)

Hi — I ran into this issue myself. Here’s how I fixed it:
  1. Close MATLAB.
  2. Manually delete the folder that still exists for the support package, e.g.~/Documents/MATLAB/SupportPackages/R2025a/<PackageName>
  1. Open MATLAB and run:matlabroot % to find your MATLAB installation path
  1. Then use the MATLAB Package Manager (mpm) in the terminal to clean-install the package:./mpm install --release=R2025a --products=<SupportPackageName> --destination=<matlabroot>
  1. After the installation completes, launch MATLAB, go to Add-On Manager, and confirm the package appears and works properly.
If you’re working in Pakistan and looking for help with logistics or communication tools while you fix software workflows, you might find TelePackages.pk useful: https://telepackages.pk/

Categorie

Prodotti

Release

R2025a

Richiesto:

il 16 Set 2025

Risposto:

il 12 Nov 2025

Community Treasure Hunt

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

Start Hunting!

Translated by