In the following procedure, packages are removed from and added to a new boot environment.
When you are upgrading. adding and removing packages or patches, Solaris Live Upgrade requires packages or patches that comply with the SVR4 advanced packaging guidelines. While Sun packages conform to these guidelines, Sun cannot guarantee the conformance of packages from third-party vendors. If a package violates these guidelines, the package can cause the package-addition software to fail or can alter the active boot environment.
For more information about packaging requirements, see Appendix B, Additional SVR4 Packaging Requirements (Reference).
Become superuser or assume an equivalent role.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
To remove a package or set of packages from a new boot environment, type:
# luupgrade -P -n second_disk package-name |
Indicates to remove the named package or packages from the boot environment
Specifies the name of the boot environment where the package is to be removed
Specifies the names of the packages to be removed. Separate multiple package names with spaces.
To add a package or a set of packages to the new boot environment, type:
# luupgrade -p -n second_disk -s /path-to-packages package-name |
Indicates to add packages to the boot environment.
Specifies the name of the boot environment where the package is to be added.
Specifies the path to a directory that contains the package or packages that are to be added.
Specifies the names of the package or packages to be added. Separate multiple package names with a space.
In this example, packages are removed then added to the second_disk boot environment.
# luupgrade -P -n second_disk SUNWabc SUNWdef SUNWghi # luupgrade -p -n second_disk -s /net/installmachine/export/packages \ SUNWijk SUNWlmn SUNWpkr |