Extract from DMG

Viewed 30322

How to extract content of DMG without mounting it? I want add autoupdate system to my application. It downloads DMG from website, then extract new version of application from it.

3 Answers

Dmg is just a format used for MacOS. It's a not compressed file format like zip or tar.gz You have several choices to mount it. Here are some options.

  1. Double click on it to mount it.
  2. Use hdiutil attach your.dmg to mount the dmg file. After mounting on it, operating your command line to extract the files you want out.
Related