diff --git a/get-started/_common/intro/_packages_serving.md b/get-started/_common/intro/_packages_serving.md index 546f15ba..fb21000a 100644 --- a/get-started/_common/intro/_packages_serving.md +++ b/get-started/_common/intro/_packages_serving.md @@ -1,35 +1,44 @@ -## Hosting and serving packages + +## 包托管和服务 -Packages are hosted in **repositories** based on + +包托管在位于[更新框架](https://theupdateframework.io/){:.external} (TUF)的**仓库**中。该框架是一种规范,旨在实现软件更新的安全交付。 TUF 仓库通过附加到记录的签名元数据来保护更新,这些记录可根据已知的可信公钥和私钥进行验证。 -Packages within a repository are identified by a URL with the -`fuchsia-pkg` scheme: + +仓库中的包通过 `fuchsia-pkg` 格式的 URL 标识: ```none fuchsia-pkg://{{ '' }}repo-hostname{{ '' }}/{{ '' }}pkg-name{{ '' }}#{{ '' }}resource-path{{ '' }} ``` -* `repo-hostname`: Hostname of a trusted package repository, such as `fuchsia.com`. + +* `repo-hostname`:受信任的软件包仓库的主机名,比如,`fuchsia.com`。 +* `pkg-name`:本仓库中包的唯一标识。 +* `resource-path`:包中包含的资源,比如一个组件。 -![Diagram showing how packages are resolved from a TUF repository and cached -locally on the device.] + +![如何解析 TUF 仓库中的包并在设备本地缓存的示意图] (/get-started/images/intro/package-resolver.png){: width="751"} -Requests for software on a Fuchsia device are handled by the + +Fuchsia 设备上的软件请求由**package resolver**处理。包解析器确定系统是否已经在本地缓存了包。如果没有,解析器从存储库中获取 meta.far 并更新必要的内容 BLOB。