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.

...
TessandoIT AdministratorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Martyn SpencerSoftware Developer / Linux System Administrator / Managing DirectorCommented:
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.
0
nociSoftware EngineerCommented:
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).
0
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
This will only work if the .dmg contains no complied code.

So long as only interpreted language scripts are used (PERL, PHP, Ruby, etc...) you'll have to mount the .dmg file + extract the scripts + copy them into some directory in your $PATH variable.

OSX binaries won't run on Linux machines.

That said, the .dmg you cite above simply streams files.

To accomplish this using many other libraries, search github as follows...

site:github.com php pseudo streaming 206

Open in new window


You'll find many pseudo streaming library options to use.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

Prabhin MPEngineer-TechOPSCommented:
I'm not sure whether it will work or not,
Please find the below link,


https://www.techwalla.com/articles/how-to-install-a-dmg-file-on-ubuntu
0
TessandoIT AdministratorAuthor Commented:
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.
0
Martyn SpencerSoftware Developer / Linux System Administrator / Managing DirectorCommented:
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.
0
TessandoIT AdministratorAuthor Commented:
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.
0
serialbandCommented:
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.
1
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
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.
0
serialbandCommented:
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.
0
nociSoftware EngineerCommented:
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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.