Skip to main content

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 Packages 不适用于使用旧版按仓库计划的帐户所拥有的私有仓库。 此外,使用旧版按仓库计划的帐户无法访问 Container registry,因为这些帐户是按仓库计费的。 有关详细信息,请参阅“GitHub 的产品”。

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 (docker.pkg.github.com)

  • RubyGems registry

  • Apache Maven registry

  • NuGet registry

The Container registry and npm registry offer you the option of granular permissions and visibility settings that can be customized for each package owned by a personal user or organization account. You can choose to use granular permissions or connect the package to a repository and inherit it's permissions. For more information, see "Connecting a repository to a package."

For more information, see "About permissions for GitHub Packages" and "Configuring a package's access control and visibility."

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

Viewing a repository's packages

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

  1. On GitHub.com, navigate to the main page of the repository.
  2. 在文件列表右侧,单击“包”。 概述页面上的包链接
  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.com 的右上角,单击你的个人资料照片,然后单击“你的组织”。 贵组织在配置文件菜单中
  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.com 的右上角,单击你的头像照片,然后单击“你的个人资料”。 个人资料照片
  2. On the top of the profile page, in the main navigation, click Packages. Project tab
  3. 单击要查看的包的名称。 包名称

Further reading