Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

System Administration Guide: Virtualization Using the Solaris Operating System
Previous Next

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.

  1. 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.

  2. 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.

  1. Log in to the non-global zone as the zone administrator.
  2. 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
Previous Next

 
 
  Published under the terms fo the Public Documentation License Version 1.01. Design by Interspire