DMG files are used for installing tools and softwares into the Mac OS operating system.
The DMG File format contains data in the form of blocks which are often secured using encryption methods or are compressed using compression algorithms. A DMG File stands for Disk Image file and it is a file format which is used to create mountable disks on the Macintosh operating system.