Skip to main content

此版本的 GitHub Enterprise 已停止服务 2022-10-12. 即使针对重大安全问题,也不会发布补丁。 为了获得更好的性能、更高的安全性和新功能,请升级到最新版本的 GitHub Enterprise。 如需升级帮助,请联系 GitHub Enterprise 支持

Viewing packages

You can see details about packages published to a repository, and narrow results by organization or user.

Who can use this feature

You must have at least read permissions to view a package.

GitHub Packages 适用于 GitHub Free、GitHub Pro、面向组织的 GitHub Free、GitHub Team, GitHub Enterprise Cloud, GitHub Enterprise Server 3.0 或更高版本以及 GitHub AE。 有关升级 GitHub Enterprise Server 实例更多信息,请参阅“关于升级至新版本”和 升级助手以从� 当前的发布版本中查找升级路径。

About package views

Your ability to view a package depends on several factors. By default, you can view all packages you have published.

Repository-scoped packages inherit their permissions and visibility from the repository that owns the package. The registries below only use this type of permissions:

  • Docker registry (
  • npm registry
  • RubyGems registry
  • Apache Maven registry
  • NuGet registry

For more information, see "About permissions for GitHub Packages."

在包页面上,GitHub 为每个版本提供元数据,例如发布日期。 您可以查看包的详细信息,包括描述和安装以及使用说明。 您可以下载与包相关联的任何资产并查看有关下载活动的信息。 有关示例包页面,请参阅 @Codertocat/hello-world-npm

Viewing a repository's packages

You can find and view a package located in a particular repository.

  1. On your GitHub Enterprise Server instance, navigate to the main page of the repository.
  2. 在文件列表右侧,单击“包”。 Packages link on repo overview page
  3. 单击要查看的包的名称。 包名称

Viewing an organization's packages

You can find and view a package located in the repositories of an organization you belong to.

  1. 在 GitHub Enterprise Server 的右上角,单击� 的个人资料照片,然后单击“� 的组织”。 贵组织在配置文件菜单中
  2. 单击您的组织名称。 组织列表中的组织名称
  3. Under your organization name, click Packages.
  4. 单击要查看的包的名称。 包名称

Viewing your packages

You can find and view any package you've published across all organizations and repositories.

  1. 在 GitHub Enterprise Server 的右上角,单击� 的头像照片,然后单击“� 的个人资料”。 个人资料照片
  2. On the top of the profile page, in the main navigation, click Packages. Project tab
  3. 单击要查看的包的名称。 包名称

Further reading