Skip Navigation Links | |
Exit Print View | |
man pages section 1: User Commands Oracle Solaris 11.1 Information Library |
- application to update packages
/usr/bin/pm-updatemanager [options]
/usr/bin/pm-updatemanager [-h | --help] [-d | --debug] [-R dir | --image-dir dir]
pm-updatemanager checks for and installs available updates for the packages installed on the system.
Note - If the package/pkg, package/pkg/package-manager, or package/pkg/update-manager packages need to be updated, pm-updatemanager first updates these packages and then restarts to carry out any remaining updates.
The following options are supported:
Display a usage message.
Run pm-updatemanager in debug mode.
Operate on the image rooted at dir, rather than on the image discovered automatically.
Example 1 Update the Current Image
Invoke pm-updatemanager on the current image. This checks for and installs all available updates for packages installed in the current image.
$ /usr/lib/pm-launch pm-updatemanager
This is the same command that the desktop menu option System>Administration>Update Manager invokes.
Example 2 Update a Specified Image
Invoke pm-updatemanager on the image stored at /aux0/example_root.
$ /usr/lib/pm-launch pm-updatemanager -R /aux0/example_root
The following exit values are returned:
Everything worked.
An error occurred.
Invalid command line options were specified.
See attributes(5) for descriptions of the following attributes:
|
packagemanager(1), pkg(1), pkg(5)
http://hub.opensolaris.org/bin/view/Project+pkg/
When operating on an image you do not own, pm-updatemanager needs to be invoked with enough privilege. You will normally invoke pm-updatemanager using /usr/lib/pm-launch under these circumstances.