Go to main content

Packaging and Delivering Software With the Image Packaging System in Oracle® Solaris 11.4

Exit Print View

Updated: November 2020
 
 
Chapter 5

Modifying Package Manifests Programmatically

This chapter explains how package manifests can be programmatically edited to automatically annotate and check the manifests.

Packaging Software With IPS covers all the techniques that are necessary to publish a package. This chapter provides additional information that can help you perform the following tasks:

  • Publish a large package

  • Publish a large number of packages

  • Republish packages over a period of time

Your package might contain many actions that need to be tagged with variants or facets as discussed in Allowing Variations, or that need to be tagged with service restarts as discussed in Automating System Change as Part of Package Operations. Rather than edit package manifests manually or write a script or program to do this work, use the IPS pkgmogrify utility to transform the package manifests quickly, accurately, and repeatably.

The pkgmogrify utility applies two types of rules:

  • Transform rules modify actions.

  • Include rules cause other files to be processed.

The pkgmogrify utility reads these rules from a file and applies them to the specified package manifest.