Skip to main content

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

Installing a package

You can install a package from GitHub Packages and use the package as a dependency in your own project.

Who can use this feature

You can install any package that you have permission to view.

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 installation

You can search on your GitHub Enterprise Server instance to find packages in GitHub Packages that you can install in your own project. For more information, see "Searching GitHub Packages for packages."

After you find a package, you can read the package's description and installation and usage instructions on the package page.

Installing a package

You can install a package from GitHub Packages using any package type enabled for your instance by following the same general guidelines.

  1. Authenticate to GitHub Packages using the instructions for your package client. For more information, see "Authenticating to GitHub Packages."
  2. Install the package using the instructions for your package client.

For instructions specific to your package client, see "Working with a GitHub Packages registry."