- Erase USB drive with Disk Utility using format
Mac OS Extended (Journaled)
andMaster Boot Record
and call itMyVolume
- Use Finder to mount/open
InstallMacOSX.dmg
. - Run following commands:
pkgutil --expand /Volumes/Install\ OS\ X/InstallMacOSX.pkg /tmp/El\ Capitan
diskutil eject Install\ OS\ X
cd /tmp/El\ Capitan