Chapter 15. Creating and Installing Packages
In Chapters 13 and 14, we discussed installing packages with Fink and DarwinPorts, respectively. This chapter shows how to create packages using tools provided with Mac OS X Tiger, as well as with Fink and DarwinPorts.
The following packaging options are supported on Mac OS X by default:
- PackageMaker
Found in /Developer/Applications/Utilities, PackageMaker can be used to create packages (.pkg), which are bundles consisting of all the items that the Mac OS X Installer (/Applications/Utilities) needs to perform an installation. PackageMaker can also create metapackages (.mpkg), which can be used to install multiple packages at the same time, and distributions, which specify an entire customized installation process involving one or more packages.
When a metapackage is installed, a “receipt” is placed in the /Library/Receipts folder. These receipts are named with a .pkg extension and appear in the Finder as packages, even though they are not. You cannot use these files to install or update software. Instead, they are used to maintain a record of which packages have been installed on your system. This is how, for example, System Update knows not to install a package (or to update a package) that you’ve already installed.
- gnutar and gzip
The Unix tape archive tool gnutar is used to bundle the directories and resources for distribution. (The tar command is provided as a hard link to gnutar.) GNU Zip (gzip) is used to compress the tar archives ...
Get Mac OS X Tiger for Unix Geeks, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.