I would like to install the dmg java package in my MAC OS through the terminal I tried using this command: sudo installer -package jdk-7u51-macos-x64.dmg -target / But I receive this error: ins.
An ISO file contains optical disc file system and contains elements that would be written in optical disc. It comes with .iso extension but sometime .img extension is also used in some cases like Microsoft Dreamspark. The file which doesn’t contain ISO 9660 but have UDF which comes with .udf extension. It is sector by sector copy of data.
What is ISO FILE
The full form of ISO is International Organisation for Standardization. The ISO name is taken from ISO 9660, used with CD ROM media but it contain a UDF(ISO/IEC 13346) file system ( used for DVDs and Blu-ray Discs). Most of the operating systems like Unix, Linux and Mac OS have built in capability to mount an ISO. Most of the emulator uses .ISO file to create image of CD. Emulator like PCSX2, Dolphin use .iso to emulate Wii and GameCube games and Playstation 2 games respectively.
Benefits of ISO file
- It is the program file which is neatly copied in a single file and it is used to distribute large program over the internet.
- It is used to create backup of CD or DVD because it creates the exact copy carry, and converts all the data with bits from the disc. Whenever the file is copied, it lacks the header file but when iso file is created it covers all the things including the header file.
Softwares used to create iso file
- ISO Recorder
- Magic ISO
- Power ISO
- Any to ISO
What is .dmg file
DMG file is Apple disc image which is used for Mac OS. It comes with .dmg extension. DMG stands for Disc Image File. It has UDIF(Universal Disc Image Format) for Mac OS X with .dmg extension. It is capable for the compressed, encrypted data, file spanning amd some of which are password protected. It is downloaded from internet and mounts a virtual disc on the desktop when opened. Disc image file is only used for Mac OS not for the Windows. DMG file support 128-bit and 256-bit AES encryption.
Benefits of .dmg file:
- It has supporting feature for creating hybrid optical media, that has multiple file system
- It also supports some of the file system like Hierarchical File System (HFS) , HFS Plus, ISO 9660, Universal Disc Format (UDF), File Allocation Table(FAT).
- DMG files are read only file ,allow the file to change nothing after being created. This makes the software more secure and free from any virus.
- It is easy to send more than one file over the internet that contains software and its Installer.
- It has ability to show multilingual software licence agreement before mounting the disc image.
We have so much in Mac that would make it easy for us to convert an ISO file to DMG and DMG file to ISO and also no additional software is required. Although there are some processes that would be used to convert the DMG file into ISO file in Mac OS X.
The first process is by using opening disc utility , the second process comes with the command line and the third via different software.
Opening Disc Utility
This is a powerful technique. We should be careful while doing this because by our single mistake it would easily wipe out data from some of our discs. So be cautious.
Explanation of process:
- First of all we have to insert the CD/ DVD which contains the file that we want to convert into a CD burning capable mac.
- After that, go to the Finder file and open it. After opening click on the application and then double click on the Utilities folder.
- After that, to open the Disc Utility, double click on the application.
Creating DMG file
- After opening the Disc Utility window, go to left and check name of the disc that we want to insert in the highlighted region.
- Then click on the file menu which is at the top and go to downward menu option, click New, then click on Disc Image (name of our disc).
- Give a name to new file and navigate on the desktop to save the file there.
- Choose the compressed image format
- Click on save menu and now we have .dmg file save in the desktop. Now our next task is to burn the file onto a blank CD/DVD.
Burning the DMG file
- Take out the original CD/DVD from the computer and put a blank CD/DVD on it. If you promoted with a pop-up window, click ignore.
- Then after return to Disc Utility and go to top of the window and click the Burn button.
- Then after, go and check out on the desktop and highlight the .dmg file and save. Then click on Burn button.
- Click Burn again in the new window to set the new default setting.
- CD/DVD is automatically ejected, once the program is finished. Now we have a burned CD or DVD with a copy of original file saved in .dmg format.
Second Method
Using Command line:
This is the easiest method to convert the ISO file into DMG by using command line.
Explanation:
- Go to the Finder and open it, then open the terminal by clicking GO > Terminal
- Type the following command on the terminal
- hdiutil convert /path/imagefile.iso –
- format UDRW -o /path/convertedimage.dmg , here /path/imagefile.iso is the path to the file.
- Then after press Enter , it will take few seconds or minutes according to the size of file. After completion, the file comes with .CDR extension. Just rename it to .ISO . The file is ready to use.
Third method via different software
Softwares which are capable to convert the ISO file into DMG
Some of the softwares atr also used to convert the ISO file to DMG file. Some of them are
- MagicISO: It is a software which is capable to convert many format into disc image file. Click on the MagicISO then click on the File and then click on open our ISO file. Click on Property and then Apple Disc Image and click Save. The ISO file is converted to DMG file. To download the MagicISO go to the official website www.magiciso.com . It is available for 64 bit as well as for 32 bit.
- PowerISO: It is also another software which is capable of converting many types of format into disc image file. Open the Power ISO and click File and then click on open ISO file. Click on the Properties and then select the Apple Disc Image. Click on the File icon and save it from the drop down menu and click Save. The ISO file is converted to DMG and ready to use. To download the PowerISO go to official website www.poweriso.com .
- Nero Burning Rom: Like the MagicISO and PowerISO, Nero Burning Rom is also used to convert the ISO file into DMG file. Click on the Nero Burning Rom amd click on the File and then click on open the ISO file and then click on the File and Save As dialog box. “Output File Type” property is changed Disc Image File and the Save it . This is how we convert the ISO file to DMG using Nero Burning Rom. DMG file is ready to use. To download the Nero Burning Rom go to the Official website www.nero.com .
Compressing multiple files into a single one has been a major task we do with computers. For Windows users, we are familiar with ZIP or RAR. However, for Mac computer gz or tar.gz file is more popular based on the nature macOS was built on with Unix. a .gz file is the outcome of a compressed file made by Gzip utility, which only compresses one file. Instead, tar.gz file is a compressed file made up by serveral single files. That's the difference between .gz and tar.gz file.
By definition, therefore, you should be able to uncompress or unzip the file, and the command to be used for this purpose is 'gunzip'. On a Mac computer, you can use Terminal to run the gunzip command, but there are a few things to remember. You can also use a software utility for this purpose. Both methods are described in detail in the following sections.
Part 1. How to Unzip a Gz or Tar.gz File on Mac via Command Line
Terminal is Apple's equivalent of the Windows shell, which is also known as Command Prompt. Using Terminal, you can easily uncompress a gz file. Once it has been unzipped, the file name will be retained and the .gz extension will be removed. The contents of the file will be extracted to the same directory where the .gz file is. Let's see how to do this on a Mac:
Step 1. Open an instance of Terminal on your Mac by going to Applications >> Utilities and clicking on Terminal.
Step 2. In the Terminal window, use the 'cd' command to take you to the specific folder where your gz file is present. For example, if your file is in ~/xyz/Documents, then type this command followed by Enter: cd ~/xyz/documents
Step 3. Now run the following command in the command line of Terminal: gunzip filename.gz
You must be in the same directory as the .gz file, or this command will not work.
The above command will decompress the file and extract the contents into a folder with the same name as the .gz file. However, if there's a file with the same filename already in that folder, you'll get an overwrite prompt. For example, if you have a file called 'Conversation1.doc' in the folder and your .gz file is called 'Conversation1.doc.gz', then you will be prompted to accept or reject an overwrite of the existing file when you run the gunzip command. To automatically overwrite the original, you can force the decompression by using the '-f' switch, in which case your command will need to be as follows. However, you will lose the original file if you do this: gunzip -f filename.doc.gz
There are clearly several issues that you have to watch for. First, you need to make sure that the Terminal shell is running in the same directory as your .gz file. Second, you need to make sure that any file with a similar filename is either renamed or moved to another directory if you want to keep it. Third, if the file is a .tar.gz, then in addition to decompressing the file, you will need a separate archive extractor utility to extract the contents of the .tar file that you get after running the gunzip command. Fourth, if you want to retain a copy of the .gz file, then you need to use a different switch, which is '-k'.
If you are not tech-savvy or have doubts about being able to do such intensive command line work, then you can consider a special software utility for Mac that can do the job for you
Part 2 : How to Extract .gz/tar.gz File on Mac via TunesBro CleanGeeker
This software (TunesBro CleanGeeker) will help you avoid any command line work, and you can easily extract a gz file on your Mac with just a couple of clicks. The CleanGeeker software is essentially a Mac optimization utility that can help manage your Mac's memory resources by cleaning junk, duplicate and other unnecessary files. But it also has some very useful modules such as the Unarchiver (used here to extract gz files), Uninstaller for apps, Eraser for complete data deletion and many more.
In addition to being able to extract gz files, CleanGeeker can also extract other archive file types such as RAR, Zip, Tar, EML, Winmail.dat, Bzip2 and many more. Let's see how to extract a gz file using this versatile software.
Highlights of TunesBro CleanGeeker
- Support multiple archive formats: gz, tar.gz, zip, rar, bzip, etc.
- Remove junk and temporary data from Mac.
- Batch close background apps to release more running memory.
- Uninstall malware or apps that could not be deleted.
Step 1Install and Open TunesBro CleanGeeker on Mac
Download the CleanGeeker DMG file from the official TunesBro website and install it on your Mac. Launch the application and go to the Unarchiver option under Utilities on the left-side panel.
Step 2Import GZ or Tar.GZ File into CleanGeeker
Import the archive file either by clicking on 'Open Archive' or dragging and dropping the gz file in the CleanGeeker window. The extraction process is automatically started, and in a few seconds you'll be able to see the contents of the file.
You can choose to save the contents in a different location or open the file. You can also email the content using an associated email client.
Comment:
The job is done in seconds and requires no additional input, which is why CleanGeeker is one of the most highly regarded Mac utilities. You also get a comprehensive Mac memory management suite when you download the software, which users find to be a big advantage. We recommend using CleanGeeker to extract gz files rather than using the command line method since it's safer, more convenient and more flexible.