没有合适的资源?快使用搜索试试~ 我知道了~
Oracle Solaris 10 Application Packaging Developer's Guide-180
需积分: 5 0 下载量 172 浏览量
2023-06-28
11:53:30
上传
评论
收藏 1.19MB PDF 举报
温馨提示
试读
180页
Oracle Solaris 10 Application Packaging Developer's Guide-180
资源推荐
资源详情
资源评论
Application Packaging Developer's Guide
Beta
Part No: 817–0406–14
November 2010
Copyright © 2005, 2010, Oracle and/or its aliates. All rights reserved.
This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual
property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license,
transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software,
unless required by law for interoperability, is prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If you nd any errors, please report them to us in writing.
If this is software or related software documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following
notice is applicable:
U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are
“commercial computer software” or “commercial technical data” pursuant to the applicable Federal Acquisition Regulation and agency-specic supplemental
regulations. As such, the use, duplication, disclosure, modication, and adaptation shall be subject to the restrictions and license terms set forth in the applicable
Government contract, and, to the extent applicable by the terms of the Government contract, the additional rights set forth in FAR 52.227-19, Commercial
Computer Software License (December 2007). Oracle America, Inc., 500 Oracle Parkway, Redwood City, CA 94065.
This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently
dangerous applications, including applications which may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you
shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its aliates disclaim any
liability for any damages caused by use of this software or hardware in dangerous applications.
Oracle and Java are registered trademarks of Oracle and/or its aliates. Other names may be trademarks of their respective owners.
AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. Intel and Intel Xeon are
trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC
International, Inc. UNIX is a registered trademark licensed through X/Open Company, Ltd.
This software or hardware and documentation may provide access to or information on content, products, and services from third parties. Oracle Corporation and
its aliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle Corporation
and its aliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services.
110417@25097
Contents
Preface .....................................................................................................................................................9
1 Designing a Package ...........................................................................................................................13
Image Packaging System (IPS) ........................................................................................................... 13
Where to Find Packaging Tasks ......................................................................................................... 14
What Are Packages? ............................................................................................................................ 14
Package Components .......................................................................................................................... 14
Required Package Components ................................................................................................. 15
Optional Package Components ................................................................................................. 16
Considerations Before Building a Package ....................................................................................... 17
Make Packages Remotely Installable ......................................................................................... 18
Optimize for Client-Server Congurations .............................................................................. 18
Package by Functional Boundaries ............................................................................................ 18
Package Along Royalty Boundaries ........................................................................................... 18
Package by System Dependencies .............................................................................................. 18
Eliminate Overlap in Packages ................................................................................................... 18
Package Along Localization Boundaries ................................................................................... 19
Packaging Commands, Files, and Scripts ......................................................................................... 19
2 Building a Package ..............................................................................................................................23
The Process of Building a Package (Task Map) ............................................................................... 23
Package Environment Variables ........................................................................................................ 24
General Rules on Using Environment Variables ..................................................................... 24
Package Environment Variables Summary .............................................................................. 25
Creating a pkginfo File ....................................................................................................................... 26
Dening a Package Instance ....................................................................................................... 26
Dening a Package Name (NAME) ............................................................................................... 28
3
Dening a Package Category (CATEGORY) ................................................................................. 28
▼ How to Create a pkginfo File ..................................................................................................... 29
Organizing a Package's Contents ....................................................................................................... 29
▼ How to Organize a Package's Contents ..................................................................................... 30
Creating a prototype File .................................................................................................................. 31
Format of the prototype File ..................................................................................................... 31
Creating a prototype File From Scratch ................................................................................... 36
Example—Creating a prototype File With the pkgproto Command .................................. 36
Fine-Tuning a prototype File Created With the pkgproto Command ................................ 37
Adding Functionality to a prototype File ................................................................................ 39
▼ How to Create a prototype File by Using the pkgproto Command ..................................... 42
Building a Package ............................................................................................................................... 43
Using the Simplest pkgmk Command ........................................................................................ 44
The pkgmap File ............................................................................................................................44
▼ How to Build a Package ............................................................................................................... 44
3 Enhancing the Functionality of a Package (Tasks) ........................................................................ 49
Creating Information Files and Installation Scripts (Task Map) ................................................... 49
Creating Information Files ................................................................................................................. 50
Dening Package Dependencies ................................................................................................ 50
▼ How to Dene Package Dependencies ...................................................................................... 51
Writing a Copyright Message ..................................................................................................... 53
▼ How to Write a Copyright Message ........................................................................................... 53
Reserving Additional Space on a Target System ...................................................................... 54
▼ How to Reserve Additional Space on a Target System ............................................................ 55
Creating Installation Scripts ............................................................................................................... 56
Script Processing During Package Installation ......................................................................... 57
Script Processing During Package Removal ............................................................................. 57
Package Environment Variables Available to Scripts .............................................................. 58
Obtaining Package Information for a Script ............................................................................. 59
Exit Codes for Scripts .................................................................................................................. 59
Writing a request Script ............................................................................................................. 60
▼ How to Write a request Script ................................................................................................... 62
Gathering File System Data With the checkinstall Script ................................................... 63
▼ How to Gather File System Data ................................................................................................ 64
Contents
Application Packaging Developer's Guide • November 2010 (Beta)4
Writing Procedure Scripts .......................................................................................................... 65
▼ How to Write Procedure Scripts ................................................................................................ 66
Writing Class Action Scripts ...................................................................................................... 67
▼ How to Write Class Action Scripts ............................................................................................. 74
Creating Signed Packages ................................................................................................................... 75
Signed Packages ............................................................................................................................ 75
Certicate Management .............................................................................................................. 76
Signed Packages Creation ........................................................................................................... 78
▼ How to Create an Unsigned, Directory-Format Package ........................................................ 78
▼ How to Import the Certicates Into the Package Keystore ..................................................... 80
▼ How to Sign the Package .............................................................................................................81
4 Verifying and Transferring a Package .............................................................................................. 83
Verifying and Transferring a Package (Task Map) ......................................................................... 83
Installing Software Packages .............................................................................................................. 84
The Installation Software Database ........................................................................................... 84
Interacting With the pkgadd Command ................................................................................... 85
Installing Packages on Standalone Systems or Servers in a Homogeneous Environment .. 85
▼ How to Install a Package on a Standalone System or Server ................................................... 85
Verifying the Integrity of a Package .................................................................................................. 86
▼ How to Verify the Integrity of a Package ................................................................................... 86
Displaying Additional Information About Installed Packages ...................................................... 88
The pkgparam Command ............................................................................................................ 88
▼ How to Obtain Information With the pkgparam Command .................................................. 88
The pkginfo Command .............................................................................................................. 89
▼ How to Obtain Information With the pkginfo Command .................................................... 92
Removing a Package ............................................................................................................................ 92
▼ How to Remove a Package .......................................................................................................... 93
Transferring a Package to a Distribution Medium .......................................................................... 93
▼ How to Transfer a Package to a Distribution Medium ............................................................ 93
5 Case Studies of Package Creation ..................................................................................................... 95
Soliciting Input From the Administrator ......................................................................................... 95
Techniques .................................................................................................................................... 95
Approach ....................................................................................................................................... 96
Contents
5
剩余179页未读,继续阅读
资源评论
weixin_40191861_zj
- 粉丝: 65
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功