Dissecting a Package

As discussed previously, packages can be in either of two possible formats. The package we installed earlier was stored on the Solaris CD in exploded (or directory) format, but we converted it into a single file on the hard disk before installing it. To examine the files and installation scripts within a package, it needs to be in the exploded form. Packages can be freely transferred between these two formats (using pkgtrans). The pkgadd command can install exploded packages in much the same way as we have seen it install the single-file versions.

To create an exploded package from a single file, we use the pkgtrans as follows:

 hydrogen# cd /export/packages hydrogen# pkgtrans sar.pkg /export/pkgdir The following packages ...

Get Solaris™ Operating Environment Boot Camp 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.