Using terminal, how can I install a DMG file without sudo rights?
DMG is a disk image, not an installer. You can't see from the outside how a piece of software is installed just by it being distributed as a DMG.

That said, if the DMG contains an .app, your user might be able to "install" (copy) it to their ~/Applications/ folder. The software will be only available to this specific user.