使用 installadm update-profile 命令可将指定安装服务中的指定配置文件替换为指定文件的内容。更新后,任何条件都将随配置文件一起保留。
可以指定配置文件的名称以及包含服务的安装服务。如果未使用安装服务指定配置文件,则要更新的配置文件的名称为文件的基名。
以下命令将 solaris11_2-sparc 服务中的 sparc-ent 配置文件的内容更新为 ./myprofiles/profile-new-sparc-ent.xml 的内容。
# installadm update-profile -n solaris11_2-sparc \ -f ./myprofiles/profile-new-sparc-ent.xml -p sparc-ent