Avatar of Tessando
Flag for United States of America asked on

Seeking Suggestions for Installing DMG file on Linux

I am building an encoding server in Amazon Linux. This is typically build using Mac OS X.

I have one more step, and that is to install "HTTPLiveStreamingTools368.dmg".

What is the simplest method to install an .DMG file typically used on Mac OSX to be installed on Linux?

Thanks for your assistance and suggestions.

LinuxOperating SystemsMac OS X

Avatar of undefined
Last Comment

8/22/2022 - Mon
Martyn Spencer

I am not aware of any way of doing this. A DMG file will contain executables intended for the OSX platform and I cannot see how you would run these executables.

If the package you want to install has source, you may be able to build it for Linux.

If you just want to examine the contents, check out this link: https://askubuntu.com/questions/38112/how-can-i-open-a-dmg-file#38122 and follow the instructions. They should work for most distributions with minor changes, if any.

I highly doubt a DMG will work on Linux.

Mac OS-X is based on FreeBSD Unix, which works differently and uses different libraries from Linux.
Even using a DMG on FreeBSD will be hard to do, as Apple also uses different libraries (f.e. windows manager) on Mac OS that are not available from on FreeBSD.

Now what does HTTPLiveStreamingTools368 do..., FFMpeg, VLC, or other tools might work on linux.
Addendum: VLC supports HLS (Http Live Streaming from V2.0 onwards).
David Favor

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Prabhin MP

I'm not sure whether it will work or not,
Please find the below link,

I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck

Thanks guys, I appreciate the advice. Since a DMG itself is proving to be a pain, and I've been using Brew (HomeBrew/LinuxBrew) to install the majority of tools, perhaps I will take a different approach.

David Favor mentioned what this package contains. Is there a way for me to open up this DMG file and see what's in it? I highly suspect that I'll be able to download the necessary pieces elsewhere.

Thank you again for your help. The more I use Linux the more I understand that it's really the workhorse for what I'm using it for.
Martyn Spencer

My comment above, and another one links to locations where you can find instructions on opening and mounting a DMG file so that you can see the contents.

Ah, thank you Martyn. Yes, your link was helpful for sure. What I really was looking for was "how to view the contents of a DMG file on Mac OSX". Thank you for your suggestion to look back at those links, those were very helpful.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.

A DMG file is just a container.  It's not some sort of "package".  Mac packages use the .pkg and .mpkg extensions, and those are different from .dmg files and can exist within the DMG package.  DMGs are more  like an ISO file, but specific to the MAC OS.  If you want to use it on linux, convert it to ISO.  You can use Disk Utility.app to convert a DMG to an ISO file by selecting DVD/CD Master as the format to save as.  There are also tools for doing that on Windows.

Here's the OS X command line utility.
hdiutil convert /path/imagefile.dmg -format UDTO -o /path/convertedimage.iso

Once the format is converted to ISO, you can use Linux utilities to mount the ISO and view the data.
David Favor

As serialband said, a DMG is a container, like MP4 or MKV files.

Likely the DMG contains compiled code which will only work on OSX due to library dependencies.

To view the contents of a DMG file...

Right click on *.dmg file -> Show enclosing folder.

DMG == Disk Image  --> ISO  It's the mac version of the ISO.  

Convert it to ISO and it will still work on a MAC.  ISOs are more universal.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck

even then if there are binaries on them they still most probably won't work outside of an IOS system, withou help o some "emulator" ...
Like windows binaries only work on windows or under Wine on linux.   Or linux binaries not "just work"  on windows or IOS X.