1. Which Solaris tools allow a system administrator to remotely manage Solaris 10 OS updates for a
number of remote systems from a centralized server location? (Choose two)
A. /usr/sbin/smpatch
B. /usr/bin/updatemanager
C. /usr/sbin/patchadd
D. /usr/sbin/patchmgr
Answer: AB
1、 /usr/sbin/smpatch analyze 分析并获得一个需要安装的补丁列表 2、 /usr/sbin/smpatch download 下载分析过的补丁列表到本地主机(如果你想重用这些补丁的话) 3、/usr/sbin/smpatch update 安装这些下载好的补丁
更详细的描述请参考 smpatch的手册页
analyze Analyzes a system to generate a list of the appropriate updates.
download Downloads updates from the Sun update server to a sys- tem. You can optionally specify which updates to down- load. You can also specify the name of a system and download the appropriate updates to that system.
update Updates a single local or remote system by applying appropriate updates. This subcommand analyzes the sys- tem, then downloads the appropriate updates from the Sun update server to your system. After the availability of the updates has been confirmed, the updates are applied based on the update policy. |
-------------------------
升级 in Linux and Solaris has different meaning.
In Solaris, 升级 normally means "big change", such as upgrade Solaris 9 to Solaris 10, or Solaris 10 U1 to Solaris update U4 etc. 升级 are normally done through re-install or Solaris live update.
In you are making "small changes" such as individual package changes or kernel improvements, it is called patching. Patching can be done by patchadd or smpatch commands.
Solaris pkginfo, pkgadd, pkfrm and pkgchk commands are similar to Linux rpm command. For example, if you want to find the apache package version, you can do: pkginfo |grep -i apache pkginfo -l SUNWapchr |
-----------------------
一般日常性的更新操作(其实主要就是补丁),可以用斑竹补充的那些命令,或者/usr/bin/updatemanager.
对于升级,看文档的时候知道这样一个命令luupgrade,可以参考。除此之外,我就只知道从光盘启动,选择安装方式为 upgrade。
Maintenance Commands luupgrade(1M)
NAME luupgrade - installs, upgrades, and performs other functions on software on a boot environment
SYNOPSIS /usr/sbin/luupgrade [-iIufpPtTcC] [options]
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:
o Upgrades an operating system image on a BE (-u option). The source for the image can be any valid Solaris ins- tallation medium, including a Solaris Flash archive.
o Extract a Solaris Flash archive onto a BE (-f option). (See flar(1M).)
o Add a package to (-p) or remove a package from (-P) a BE.
o Add a patch to (-t) or remove a patch from (-T) a BE.
o Check (-C) or obtain information about (-I) packages.
o Check an operating system installation medium (-c).
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 opera- tion, 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).
luupgrade allows you to install an operating system image from a different marketing release of the Solaris operating system from the release running on the machine from which you invoke luupgrade. ...... |
阅读(805) | 评论(0) | 转发(0) |