{"meta":{"title":"搜索软件包","intro":"可以在 GitHub 上搜索包，并使用搜索限定符缩小结果范围。","product":"在 GitHub 上搜索","breadcrumbs":[{"href":"/zh/search-github","title":"在 GitHub 上搜索"},{"href":"/zh/search-github/searching-on-github","title":"在 GitHub 上搜索"},{"href":"/zh/search-github/searching-on-github/searching-for-packages","title":"搜索软件包"}],"documentType":"article"},"body":"# 搜索软件包\n\n可以在 GitHub 上搜索包，并使用搜索限定符缩小结果范围。\n\n<!-- 2148AF7B-5FF8-4B28-A808-D692FEE2225A -->\n\n## 关于搜索软件包\n\n可以在 GitHub 中全球搜索包，也可以在某个特定组织内搜索包。 有关详细信息，请参阅“[关于在GitHub上的搜索](/zh/search-github/getting-started-with-searching-on-github/about-searching-on-github)”。\n\n> \\[!TIP]\n>\n> * 本文包含 GitHub.com 网站上示例搜索的链接，但你可以在任何 GitHub 平台中使用相同的搜索筛选器。 在链接的示例搜索中，将 `github.com` 替换为 GitHub 平台的主机名。\n> * 有关可以添加到任何搜索限定符以进一步改善结果的搜索语法列表，请参阅 [了解搜索语法](/zh/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax)。\n> * 对多个字词的搜索词使用引号。 例如，如果要搜索具有标签“In progress”的问题，可搜索 `label:\"in progress\"`。 搜索不区分大小写。\n\n## 在用户或组织的软件包中搜索\n\n要查找特定用户或组织拥有的包，请使用 `user` 或 `org` 限定符。\n\n| 限定符                                                                                            | 示例 |\n| ---------------------------------------------------------------------------------------------- | -- |\n| <code>user:<em>USERNAME</em></code>                                                            |    |\n| \\[                                                                                             |    |\n| \\*\\*                                                                                           |    |\n| `user:codertocat`                                                                              |    |\n| \\*\\*                                                                                           |    |\n| ]\\(<https://github.com/search?q=user%3Acodertocat&type=RegistryPackages>) 匹配归属于 @codertocat 的包 |    |\n| <code>org:<em>ORGNAME</em></code>                                                              |    |\n| \\[                                                                                             |    |\n| \\*\\*                                                                                           |    |\n| `org:github`                                                                                   |    |\n| \\*\\*                                                                                           |    |\n| ]\\(<https://github.com/search?q=org%3Agithub&type=RegistryPackages>) 匹配归属于 GitHub 组织的包         |    |\n\n## 按包的可见性进行过滤\n\n要按包是公共还是专用来筛选搜索，请使用 `is` 限定符。\n\n| 限定符                                       | 示例 |\n| ----------------------------------------- | -- |\n| `is:public`                               |    |\n| **is:public angular** 匹配包含单词“angular”的公共包 |    |\n| `is:private`                              |    |\n| **is:private php** 匹配含有“php”字样的私有包        |    |"}