Question: what is a dmg file?
Answer: DMG files are macOS disk image files. They are much like ISO files—their Windows-based counterpart. These disk images normally contain program installation files for macOS apps, but they can also be used to hold compressed files.