You can use the upgrade option if you are running Solaris 2.4 or later.
To see what version of the Solaris operating environment the system is running, type:
$ uname -a