Checking Package Information on a Solaris System With Zones Installed
You can query the software package database for the global zone and non-global zones by using the pkginfo command. See the pkginfo(1) man page for more information about this command.
How to Check Package Information in the Global Zone Only
To check the software package database for the global zone only, use pkginfo followed by the package name.
global% pkginfo package_name
Example 25-1 Using the pkginfo Command in the Global Zone
global% pkginfo SUNWcsr SUNWcsu system SUNWcsr Core Solaris, (Root) system SUNWcsu Core Solaris, (Usr) |
How to Check Package Information in a Specified Non-Global Zone Only
To check the software package database in a specific non-global zone, log into the non-global zone and use pkginfo followed by the package name.
my-zone% pkginfo package_name
Example 25-2 Using the pkginfo Command in a Non-Global Zone
my-zone% pkginfo SUNWcsr SUNWcsu system SUNWcsr Core Solaris, (Root) system SUNWcsu Core Solaris, (Usr) |
Removing a Package From a Solaris System With Zones Installed
You can use the pkgrm system utility described in the pkgrm(1M) man page to perform the following tasks:
Remove a package from the global zone and all non-global zones
Remove a package from a specified non-global zone only
The SUNW_PKG_ALLZONES and SUNW_PKG_HOLLOW package parameter settings must match the correct value, either true or false, to remove packages. Otherwise, the desired result will not be achieved. For more information about the effect of these package parameter settings, see About Packages and Zones. For more information about how to check these package parameter settings, see Checking Package Parameter Settings on a System with Zones Installed.
How to Remove a Package From the Global Zone and All Non-Global Zones
You must be the global administrator in the global zone to perform this procedure.
Become superuser, or assume the Primary Administrator role.
To create the role and assign the role to a user, see "Using the Solaris Management Tools With RBAC (Task Map)" in System Administration Guide: Basic Administration.
While in the global zone, run the pkgrm command followed by the package name.
global# pkgrm package_name
How to Remove a Package From a Specified Non-Global Zone Only
To remove a package from a specified non-global zone only, the SUNW_PKG_ALLZONES package parameter must be set to false.
You must be the zone administrator in the non-global zone to perform this procedure.
Log in to the non-global zone as the zone administrator.
While in the non-global zone, my-zone in this procedure, run the pkgrm command followed by the package name.
my-zone# pkgrm package_name
Applying a Patch to a Solaris System With Zones Installed
You can use the patchadd system utility described in the patchadd(1M) man page to perform the following tasks:
Apply a patch to the global zone only
Apply a patch to the global zone and all non-global zones
Apply a patch to specified non-global zone only
How to Apply a Patch to the Global Zone Only
Note - If you are patching a package that was added by using the pkgadd command with the -G option, the package must be patched by using the patchadd command with the -G option.
You must be the global administrator in the global zone to perform this procedure.
Become superuser, or assume the Primary Administrator role.
To create the role and assign the role to a user, see "Using the Solaris Management Tools With RBAC (Task Map)" in System Administration Guide: Basic Administration.
Execute the patchadd command with the -Goption, followed by the patch ID.
global# patchadd -G patch_id
How to Apply a Patch to the Global Zone and All Non-Global Zones
You must be the global administrator in the global zone to perform this procedure.
Become superuser, or assume the Primary Administrator role.
To create the role and assign the role to a user, see "Using the Solaris Management Tools With RBAC (Task Map)" in System Administration Guide: Basic Administration.
Execute the patchadd command followed by the patch ID.
global# patchadd patch_id
How to Apply a Patch to a Specified Non-Global Zone Only
To apply a patch to a specified non-global zone only, the SUNW_PKG_ALLZONES package parameter for all packages in the patch set must be set to false.
You must be the zone administrator in the non-global zone to perform this procedure.
Log in to the non-global zone as the zone administrator.
While in the non-global zone, my-zone in this procedure, execute the patchadd command followed by the patch ID.
my-zone# patchadd patch_id
Removing a Patch on a System with Zones Installed
You can use the patchrm system utility described in the patchrm(1M) man page to perform the following task:
Remove a patch from the global zone and all non-global zones
Remove a patch from a specified non-global zone only