First, this is not "Software Discussion", you are asking for help so please post in the help/questions forum in future. Anyway, moving on....
A .dmg file is an image, all you have to do is double click it and it will mount. Then you can just open the "drive" up as if it were an HDD or CD-ROM and run or copy whatever it is you need from it.
Welcome to MacRumors 🙂