InomHitta mer dokumentationSupportresurser som ingår | Ladda ner denna bok i PDF (4505 KB)
luupgrade(1M)NAME | SYNOPSIS | DESCRIPTION | EXAMPLES | EXIT STATUS | FILES | ATTRIBUTES | SEE ALSO | WARNINGS NAME
SYNOPSIS
DESCRIPTION
The luupgrade command is part of a suite of commands that make up the Live Upgrade feature of the Solaris operating environment. See live_upgrade(5) for a description of the Live Upgrade feature. The luupgrade command enables you to install software on a specified boot environment (BE). Specifically, luupgrade performs the following functions: Before using luupgrade, you must have created a BE, using either the lucreate(1M) command or lu(1M), the FMLI-based user interface. You can upgrade only BEs other than the current BE. The functions described in the preceding list each has its own set of options, which are described separately for each function. Note that, for successful completion of an luupgrade operation, the status of a BE must be complete, as reported by lustatus(1M). Also, the BE must not have any mounted disk slices, mounted either with lumount(1M) or mount(1M). The luupgrade command requires root privileges. Options that Apply to All UsesThe following options are available for all uses of luupgrade: Upgrading an Operating System ImageThe syntax for this use of luupgrade is as follows:
The first option, -u, indicates the function to perform—to install an OS image. The remaining options, shown above, are described as follows: Note that if you are upgrading from a medium with multiple components, such as from multiple CDs, use luupgrade with the -i option, as described in the section below, to install software from the second and any following media. Running an Installer ProgramThe syntax for this use of luupgrade is as follows:
The first option, -i, indicates the function to perform—to run an installer program on the installation specified with -s. The remaining options, shown above, are described as follows: With the -i option, luupgrade looks for an installation program on the specified medium and runs that program. The -i option has a special use when you use the -u option, described above, to install software from a multiple-component medium, such as multiple CDs. See EXAMPLES. Upgrading from a Flash ArchiveThe syntax for this use of luupgrade is as follows:
The first option, -f, indicates the function to perform—to upgrade an OS from a flash archive. The remaining options, shown above, are described as follows: Add or Remove PackagesThe luupgrade command uses -p to add a package and -P to remove a package. The syntax is as follows: For adding packages:
For removing packages:
The first option, -p, to add packages, or -P to remove packages, indicates the function to perform. The remaining options, shown above, are described as follows: Add or Remove PatchesThe luupgrade command uses -t to add a patch and -T to remove a patch. The syntax is as follows: For adding patches:
For removing patches:
The first option, -t, to add patches, or -T to remove patches, indicates the function to perform. The remaining options, shown above, are described as follows: Check or Return Information on PackagesUse the -C to perform a pkgchk(1M) on all or the specified packages on a BE. Use the -I option to perform a pkginfo(1). For performing a pkgchk:
For performing a pkginfo:
The first option, -C, for pkgchk, or -I, for pkginfo, indicates the function to perform. The remaining options, shown above, are described as follows: Check an OS Installation MediumWith the -c option, luupgrade allows you to check that a local or remote medium, such as a CD, is a valid installation medium. The -c option returns useful information about the specified medium. The syntax for this use of luupgrade is as follows:
The first option, -c, indicates the function to perform—to check on an installation medium. The -s option, shown above, is described as follows: EXAMPLESExample 1 Removing, then Adding PackagesThe following example removes then adds a set of packages to a boot environment.
Now, to add the same packages:
The following command adds the -O option to the preceding command. This option passes arguments directly to pkgadd.
See pkgadd(1M) for a description of the options for that command. Example 2 Upgrading to a New OSThe following example upgrades the operating environment on a boot environment.
Following the command above you could enter the command below to activate the upgraded BE.
Then, upon the next reboot, second_disk would become the current boot environment. See luactivate(1M). Example 3 Upgrading to a New OS from Multiple CDsThe following example is a variation on the preceding. The OS upgrade resides on two CDs. To begin the upgrade, you enter: For SPARC machines:
For Intel Architecture (IA) machines, replace the s0 in the argument to -s with s2. When the installer is finished with the contents of the first CD, insert the next CD in the drive and enter the following:
Note the use of -i rather than -u in the preceding. Were there additional CDs, you would enter the same command as the one immediately above. If you are connected to the machine you are upgrading by a tip(1) line, you must use the -O “-nodisplay” option, as shown below:
Example 4 Installing a New OS from a Flash ArchiveThe following example upgrades the operating environment on a boot environment, using a flash archive.
Example 5 Obtaining Information on PackagesThe following example runs a pkgchk on the packages SUNWluu and SUNWlur, passing to pkgchk the -v option.
The following command runs pkginfo on the same set of packages:
For both commands, if the package names were omitted, luupgrade returns package information on all of the packages in the specified BE. See pkgchk(1M) and pkginfo(1) for a description of the options for those commands. EXIT STATUSFILESATTRIBUTESSee attributes(5) for descriptions of the following attributes:
SEE ALSOlu(1M), luactivate(1M), lucancel(1M), lucompare(1M), lucreate(1M), lucurr(1M), ludelete(1M), lufslist(1M), lumake(1M), lumount(1M), lurename(1M), lustatus(1M), lutab(4), attributes(5), live_upgrade(5) WARNINGSFor adding packages (-p), luupgrade requires packages that comply with the SVR4 Advanced Packaging Guidlelines. While Sun packages conform to these guidelines, Sun cannot guarantee the conformance of packages from third-party vendors. A non-conformant package can cause the package-addition software in luupgrade to fail or, worse, alter the current BE. NAME | SYNOPSIS | DESCRIPTION | EXAMPLES | EXIT STATUS | FILES | ATTRIBUTES | SEE ALSO | WARNINGS |
|||||||||||||||||||||||||