Go to main content

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

Exit Print View

Updated: November 2018
 
 

Classifying Packages

This appendix describes:

  • How to specify a classification for your package

  • Classification scheme definitions

Assigning Classifications

The Package Manager GUI uses the info.classification package attribute, with scheme org.opensolaris.category.2008, to display packages by category. Users can also use the pkg search command to display packages that have a given classification.

Use a set action to assign a classification to a package, as shown in the following example:

set name=info.classification \
    value="org.opensolaris.category.2008:System/Administration and Configuration"

The category and subcategory are separated by a forward slash character. Spaces in the attribute value require quoting.

A package can have more than one classification, as shown in the following example:

set name=info.classification \
    value="org.opensolaris.category.2008:Meta Packages/Group Packages" \
    value="org.opensolaris.category.2008:Web Services/Application and Web Servers"