This will create Sample-1.0.pkg in your current working directory. This will output a bunch of info, the very last bit is the mount point of the dmg /Volumes/Sample (the name will depend on the dmg)Ģ) build a pkg with the contents of the mounted dmg as a payload: $ pkgbuild -root /Volumes/Sample -version 1.0 -identifier -install-location / Sample-1.0.pkg You can easily convert a Composer generated installer dmg to a standard pkg with these commands:ġ) mount the dmg: $ hdiutil attach /path/to/Sample.dmg
Since the Composer generated dmgs contain all the files for the payload in the proper folder structure you can just use the entire mounted volume as your payload root for pkgbuild. However, in some cases that might not be possible or necessary. In general, it is probably preferable to re-visit your imaging process and rebuild any installer you still may have in dmg format from scratch. I cover many of them in my book: Packaging for Apple Administrators Luckily there are plenty of great other third-party tools to build installer packages. Also the Composer application is 32-bit and its future is uncertain. However, Jamf themselves have been recommending to use the standard pkg format in favor of their proprietary use of dmg.
#CONVERT DMG TO PKG INSTALL#
There are certain features in Jamf Pro which can install and distribute files to user directories and templates (called ‘Fill User Templates’ FUT and ‘Fill Every User’ FEU) which only work with dmg installers in Jamf Pro.
#CONVERT DMG TO PKG HOW TO#
The Jamf Pro management system how ever will understand what to do and how to install the files from the dmg to a system. On its own, however, this dmg cannot do anything.
The dmg option will build a standard dmg disk image file, with the payload of the installer as contents. The pkg option will build a standard pkg installer file, which will install with any system that can install pkg files. The standard pkg and the seemlingly standard (but not) dmg. Make DMGConverter smart enough so I don't have switch modes all the time.Jamf Composer has always had two formats to build installers. If I drop a folder is dropped on DMGConverter, then obviously I don't want to convert a disk image, likewise if an image is dropped on it, then usually I don't to make an image of an image. Currently I must switch to the "Convert" tab if I want to convert a disk image, or switch to the "new image" tab if I want a new image, adding extra steps to what should be a one step process. When an image, file, or folder is dropped on it, DMGConverter should be able to figure out what to do. DropDMG can do this, so it's definitely possible.Ģ. DMGConverter will only create new images from folders - I'd like to be able to drop a file or group of files on it to create an image. I was using DropDMG but DMGConverter is better for converting multiple images I can drop dozens of DMG images on and it effortlessly converts them serially without choking like DropDMG does.ġ. It would also be nice to be able to drop a whole folder or drive with DMG images in subdirectories and have it traverse the directory structure and reconvert them. But I'd rather that the smallest file were the one kept, whether that is the original or the converted. The only improvements that I can think of for this software, would be if I could set what the default behavior should be in the unusual instances when the converted image is larger than the original. The bzip2 format typically results in smaller file sizes. My most common use for DMG Converter is to convert existing disk images to the bzip2 format. It is far easier and quicker for me to drag and drop a bunch of files onto DMG converter, then it is to accomplish the same goal via the other tools. While most of what it does could be done from Apple supplied command line and GUI utilities, this is my preferred tool for its intended functions. If you have any need to make, create or change DMG disk images, you need to check out this tool. This is a very good piece of freeware and it merits the maximum rating in many categories.
#CONVERT DMG TO PKG MAC OS#
Case-sensitive Journaled Mac OS Extended.Cross-platform Hybrid Images (.iso)(Create only).