Bin.dmg Vs Bin.tar.gz

Ranch Hand
  1. Bin.dmg Vs Bin.tar.gz
posted 10 years ago
Guys,
What is the difference between extracting a bin file and a tar.gz file? For example when I downloaded java, I got them as binaries and I user a sh ./java.xxx.bin to unpack the contents. When I downloaded Maven, it was of the tar.gz form and used a tar utility to unpack the contents. What exactly is the difference between these two formats?

Dec 07, 2017  千呼万唤始出来,在经历了整整一年的跳票之后,Java 9 终于在 9 月 21 日拨开云雾,露出真正的面目。对众多 Java 程序员来说,这一天无疑是一个重大的日子,首先 Java 开发者们再也不用羡慕别的自带 REPL 的语言了,不用为了试个 Java 功能而开个 Groovy shell;其次最主要的莫过于 Jigsaw 项目下颠覆性的. Submit malware for free analysis with Falcon Sandbox and Hybrid Analysis technology. Hybrid Analysis develops and licenses analysis tools to fight malware.

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!

author and jackaroo
posted 10 years ago

Jothi Shankar Kumar wrote:What exactly is the difference between these two formats?


(my highlighting)
Precise differences are unlikely to be forthcoming, as there is no precise definition for a 'bin' format file (at least in the way that Sun are using it here - there are other 'bin' files that have more precise definitions).
Non precise ..
The tar format (tape archive) just provides a way of storing one or more files and directories into a single archive file (or device). That is all it allows - it does not specify licensing terms or anything else that you might typically find in a distribution.
For something like Maven, this is fine. The license is contained as a file within the archive, and you can read it at your leisure anytime after installing it.
For the Java distribution provided by Sun, this is not the case. They want you to explicitly look at the license agreement and accept it before you can install it. In theory, some software being distributed might also need to have a special user or group installed on your computer, and/or install daemons.
To meet these needs, it makes sense to have a file that can work on any Linux system, regardless of what has already been installed. In the Microsoft world, this might be considered an executable file (*.exe or *.msi) that contains the distribution within itself.
So that really is all the bin file is - an archive (possibly a tar archive) that is contained within an executable that knows how to process it and potentially do other work as well.

Bin.dmg Vs Bin.tar.gz

As an example, consider the following file:

(You can run this without any problems on your computer - it doesn't actually do anything other than list the contents of a tar file that is contained within lines 5 - 7. If you want to try it, just copy all 8 lines into a file and name it something like 'example.sh'. Then run 'sh ./example.sh' - you should see output showing you the contents of my file).
In this example, all my work is done in line 4:
  • cat << EOF simply concatenates all the lines between line 5 (the line following the cat command) and 7 (the line before the EOF on line 8) and sends the output to ..
  • base64 -d which converts the plain-text data in those 3 lines back into the binary tar format, and then sends that to ..
  • tar -tzvf - the tar command that tells us what is in the gzipped archive in verbose mode for the file it has just been passed (indicated by the -)

  • If that was all I was doing, I could have just provided you with the tar file directly. However I wanted you to press 'Enter' first, and that is what lines 1 & 2 get you to do. Bin.dmg vs bin.tar.gz
    Hopefully you can see from this simple example how this can be used to create a distribution that can easily be sent to a customer that can do more than just provide the raw distribution. In theory the archive contained in lines 5 - 7 could contain something that my script could have executed after extracting it.
    (If you really want to see what is in that archive, change the 'tzvf' in line 4 to an 'xzvf' (where the 'x' is for extract) and re-run it. This will create the 'txt' file in the same directory where you run the script)

    The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7Personal blog Convert exe file into dmg.

    Ranch Hand
    posted 10 years ago

    SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
    Did a rm -R / to find out that I lost my entire Linux installation!

    When Oath of Kaya enters the battlefield, it deals 3 damage to any target and you gain 3 life. Whenever an opponent attacks a planeswalker you control with one or more creatures, Oath of Kaya deals 2 damage to that player and you gain 2 life. Deal 3 dmg heal 3 dmg pro. Creeping Chill deals 3 damage to each opponent and you gain 3 life. When Creeping Chill is put into your graveyard from your library, you may exile it. If you do, Creeping Chill deals 3 damage to each opponent and you gain 3 life. Dec 20, 2019  The Heartbreaker is a Legendary Hyperion Shotgun that heals you for a small percentage of the damage you deal. This guide shows you the drop location and the prefix and anointment you'll likely. Is is possible to deal 300+ dmg with SoR per hit? I found this video on Youtube 371 SP shockadin in full t2 set with Zandari hero charm. In the vid his SoR hits like a truck, 300+ holy dmg per hit. I have 308 SP with Azuresong and I hit like 62 per hit, around 80 with JotC. Sideboard is dedicated to possible edge case decks involving swarm( Intimidation Bolt and Razia's Purification), additional control via damage and Wear / Tear and Duergar Hedge-Mage for enchantment/artifact heavy decks.

    Comments are closed.