> For the complete documentation index, see [llms.txt](https://tonyliu.gitbook.io/macos-packaging/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tonyliu.gitbook.io/macos-packaging/di-er-zhang-chu-shi-shen-shou/cha-kan-an-zhuang-bao/zhong-xin-da-bao.md).

# 重新打包

解压之后，还可以再打包，比如上面的例子中，我们用下面的命令将解压的重新打包：

```
 $ pkgutil --flatten ~/Desktop/MSUpdater ~/Desktop/MSUpdater.pkg
```

这样我们又在\~/Desktop上建立了一个新的安装包MSUpdater.pkg。

在实际使用中，我们往往会遇到一种情形，先使用开发商的安装包安装一遍，然后根据自己的特定需要，只将所需部分提取出来，在做好本地化工作之后，再将其打包为只适用于自己环境的安装包，这样可以省去本地化的工作。特别是在企业环境中，可能会碰到这样的情况，便于企业应用的部署和支持。这也是一种再打包的应用场景。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tonyliu.gitbook.io/macos-packaging/di-er-zhang-chu-shi-shen-shou/cha-kan-an-zhuang-bao/zhong-xin-da-bao.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
