The parameters set in the admin file that affect package or set removal are runlevel (which gives instructions for what to do when the run level is not met) and rdepend (which defines whether or not to check for other packages with dependencies on this package). Create and specify an alternative admin file to assign different values to these two parameters.
To remove a package or set that has an alternative admin file,
pkgrm -a admin_file_name pkgname
Unless you specify a full pathname after the -a option,
looks for the admin file
in the /var/sadm/install/admin directory.
For example, to remove a package or set named mypkg
that uses an admin file named myadmin,
execute the following:
pkgrm -a myadmin mypkg
To remove an individual package, specify
the check admin file with the -a option:
pkgrm -a check pkginst
To remove a set, use the default admin file:
sipname is the name of the set you want to remove, and the admin file default is used by default.