- Open Terminal and navigate to the directory where the Matlab installation files are downloaded (~/Downloads/MathWorks/R2022b).
- Run the following command to start the installation process:
How to create a dmg file after downloading all installation files via Matlab installer on MacOS?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I downloaded Matlab R2022b from this link and figured out that it is not a real dmg installer file. Instead it is a download manager and installer wich is not what I wanted cause I need to do a bulk installation as mu users do not have the rights to install it on their own.
So after running the initial installer I selected "Advanced Options" in the top right of the installer windows and chose "I want to download without Installing" and it went on and downloaded a lot of files under ~/Downloads/MathWorks/R2022b directory.
Now I want to package up these files to a dmg file so that I can perform a bulk installation through configuration tools like Puppet.
I was told that I can create a dmg file after running the below commands:
~/Downloads/MathWorks/R2022b/..../matlab_R2022b_maci64/InstallForMacOSX.app/Contents/MacOS/InstallForMacOSX -mode silent -agreeToLicense yes -fileInstallationKey 11111-...-11111
pkg-dmg --source /Applications/MATLAB_R2022b.app/ --target ./matlab_r2022b.app.dmg --sourcefile
But I was unsuccessful so far.
All I need is to be able to install Matlab simultaneously on many machines through terminal over the network (using a tool like Puppet) and having a dmg file would be a great option. (I have my license and FIK ready)
Any advice?
0 comentarios
Respuestas (1)
Rishav
el 7 de Mzo. de 2023
To create a dmg file from the downloaded Matlab installation files, you can follow these steps:
./<installer_file_name> -mode silent -agreeToLicense yes -fileInstallationKey <FIK>
Replace <installer_file_name> with the name of the installer file you downloaded (e.g., matlab_R2022b_maci64.dmg) and <FIK> with your File Installation Key.
3. Wait for the installation to complete. Once it's done, navigate to the Applications folder and locate the Matlab_R2022b.app.
4. To create a dmg file of the Matlab application, use the hdiutil command:
hdiutil create -format UDZO -srcfolder /Applications/MATLAB_R2022b.app -volname "MATLAB_R2022b" ~/Downloads/matlab_R2022b.dmg
This command creates a new disk image with the name "MATLAB_R2022b" at the specified location, in this case, the Downloads folder.
5. Once the dmg file is created, you can distribute it to other machines and install Matlab using the following command:
sudo installer -pkg /path/to/MATLAB_R2022b.pkg -target /
Replace /path/to/MATLAB_R2022b.pkg with the path to the dmg file you created and / with the target installation directory.
Note that you may need to run this command with root privileges using sudo.
0 comentarios
Ver también
Categorías
Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!