Use of this document and web site are governed by the Terms and Conditions of Use for InfoExpress's web site.SummaryThis brief document contains step-by-step instructions on how to create a DMG package for the Mac Agent out of the tar file generated by the CyberGatekeeper Policy Manager. The tar file size is generally not larger than 2MB.
In OS X, a DMG package can be created by using one of the following two methods:
1. Disk Utility Method
2. Command Line Utility Method
The "Disk Utility Method‟ is easier to use due to its user friendly interface. The main disadvantage of this method is that it does not create a DMG package smaller than 10MB. Therefore this method is suitable for file sizes 10MB or greater. The "Command Line Utility Method‟ needs some basic knowledge of the Terminal application and its commands. The benefit of using this method is that a DMG package smaller than 10MB may be created. The limit with this method is 512KB, i.e., a DMG package smaller than 512KB cannot be created. This method is suitable for file sizes smaller than 10MB. Since the tar file package in our case is not larger than 2MB, it is recommended to use the „Command Line Utility Method‟ to save some space.
In the instructions below we are using the command line utility (built in terminal application) method to create the DMG package.
Instructions- Create a folder and place the Mac Agent tar file into this new folder.
- Right click the folder and select “Get Info”. Note the size of the folder in case you would like to define custom size (greater than the folder size) for the DMG package.
- Open Terminal
- Enter the following command from the directory where you would like the DMG package to be created:
hdiutil create <package_name.dmg> -srcfolder <path to the folder created in step 1> -fs HFS+ - Launch Finder, navigate to the directory where the DMG package resides and double click to mount it or run the following command from the Terminal.
hdiutil attach <package_name.dmg> - Step 5 would mount the Disk Image under /Volumes with the name specified for the folder in step 1 above.
- Once the image is mounted you will be able to see Mac Agent tar file by either double clicking on it through Finder or by navigating to the directory and doing 'ls' through the Terminal.
- You can un-mount the Disk Image by right clicking and selecting Eject. If you would like to do it through the Terminal then navigate to /Volumes and enter the following command:
hdiutil detach <disk_image_name>
The pdf version of the document can be found at the following link:
Use of this document and web site are governed by the Terms and Conditions of Use for InfoExpress's web site.[/list]