# 搜索软件包

可以在 GitHub 上搜索包，并使用搜索限定符缩小结果范围。

<!-- 2148AF7B-5FF8-4B28-A808-D692FEE2225A -->

## 关于搜索软件包

可以在 GitHub 中全球搜索包，也可以在某个特定组织内搜索包。 有关详细信息，请参阅“[关于在GitHub上的搜索](/zh/search-github/getting-started-with-searching-on-github/about-searching-on-github)”。

> \[!TIP]
>
> * 本文包含 GitHub.com 网站上示例搜索的链接，但你可以在任何 GitHub 平台中使用相同的搜索筛选器。 在链接的示例搜索中，将 `github.com` 替换为 GitHub 平台的主机名。
> * 有关可以添加到任何搜索限定符以进一步改善结果的搜索语法列表，请参阅 [了解搜索语法](/zh/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax)。
> * 对多个字词的搜索词使用引号。 例如，如果要搜索具有标签“In progress”的问题，可搜索 `label:"in progress"`。 搜索不区分大小写。

## 在用户或组织的软件包中搜索

要查找特定用户或组织拥有的包，请使用 `user` 或 `org` 限定符。

| 限定符                                 | 示例 |
| ----------------------------------- | -- |
| <code>user:<em>USERNAME</em></code> |    |

```
          [
          **
          `user:codertocat`
          **
          ](https://github.com/search?q=user%3Acodertocat&type=RegistryPackages) 匹配归属于 @codertocat 的包
```

\| <code>org:<em>ORGNAME</em></code> |
[
\*\*
`org:github`
\*\*
](https://github.com/search?q=org%3Agithub\&type=RegistryPackages) 匹配归属于 GitHub 组织的包

## 按包的可见性进行过滤

要按包是公共还是专用来筛选搜索，请使用 `is` 限定符。

| 限定符         | 示例 |
| ----------- | -- |
| `is:public` |    |

```
          **is:public angular** 匹配包含单词“angular”的公共包
```

\| `is:private`|
**is:private php** 匹配含有“php”字样的私有包