How To Run A Dmg File From Terminal

Nov 02, 2013  Delete Packages Shortcut file. We need to remove this file because it’s simply a shortcut file to the folder that actually stores the files we need. We are going to replace this file with the actual folder that it links to. Open the mounted OS X Install ESD. Jul 06, 2008  I cleaned the disc, used a pc and made a dual layer backup of the dvd and tried the install, same thing happend. I downloaded a clean dmg of leopard and have it on an external drive. I booted and mounted the external with the.dmg. I want to run the install and see if it will work. How from the terminal, I'm familar with dos.

Are you trying to make a bootable installer? Do you have the El Capitan installer downloaded from the App Store? You cannot make a bootable DVD but you can make a bootable flash drive.


Bootable USB Installers for OS X Mavericks, Yosemite, El Capitan, and Sierra


First, review this introductory article: Create a bootable installer for macOS. Second, see this How To outline for creating a bootable El Capitan installer. Simply replace the Terminal command with the one from the preceding article by copying it into the Terminal window. You will need an 8GB or larger USB flash drive that has been partitioned and formatted for use with OS X.


Drive Partition and Format

  1. Open Disk Utility in the Utilities' folder.
  2. After Disk Utility loads select the drive (out-dented entry with the mfg.'s ID and size) from the side list.
  3. Click on the Erase tab in the Disk Utility toolbar. Name the drive, 'MyVolume'. <---- IMPORTANT!
  4. In the drop down panel set the partition scheme to GUID. Set the Format type to Mac OS Extended (Journaled.)
  5. Click on the Apply button and wait for the Done button to activate. When it does click on it.
  6. Quit Disk Utility.


Create Installer

How

Open the Terminal in the Utilities' folder. Choose the appropriate command line (in red) depending upon what OS X installer you want. Paste that entire command line from below at the Terminal's prompt:


Command for macOS High Sierra:

sudo /Applications/Install macOS High Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install macOS High Sierra.app

Command for macOS Sierra:

sudo /Applications/Install macOS Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install macOS Sierra.app

Command for El Capitan:

sudo /Applications/Install OS X El Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install OS X El Capitan.app

Command for Yosemite:

sudo /Applications/Install OS X Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install OS X Yosemite.app

How To Run A Dmg File From Terminal 1

Command for Mavericks:

sudo /Applications/Install OS X Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install OS X Mavericks.app


Run Dmg File From Terminal Windows

Press RETURN. You will be asked for your admin password. It will not echo to the Terminal window. Then press RETURN again. Wait for the return of the Terminal prompt signifying the process has completed. It takes quite some time to finish. Be patient.

Install Dmg File On Windows

Mar 3, 2018 7:47 PM