# Check for package in all available environments

**URL:** <https://forum.anaconda.com/t/check-for-package-in-all-available-environments/66290>\
**Category:** Packages & Environments\
**Created:** [December 29, 2023, 6:28pm UTC](https://forum.anaconda.com/t/check-for-package-in-all-available-environments/66290 "2023-12-29T18:28:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jon\_Crump](https://avatars.discourse-cdn.com/v4/letter/j/f5a800/32.png) [@Jon\_Crump](https://forum.anaconda.com/u/Jon_Crump)\
**Post date:** [December 29, 2023, 6:28pm UTC](https://forum.anaconda.com/t/check-for-package-in-all-available-environments/66290/1 "2023-12-29T18:28:13Z")

</div>

I can check for the presence of a package in the current environment: `conda list packagename`  
But, is there a straightforward way to check for the presence of packagename in any of my environments?

---

<div class="post-metadata">

**Author:** ![sweller](https://avatars.discourse-cdn.com/v4/letter/s/c2df01/32.png) [@sweller](https://forum.anaconda.com/u/sweller)\
**Post date:** [January 12, 2024, 10:52pm UTC](https://forum.anaconda.com/t/check-for-package-in-all-available-environments/66290/2 "2024-01-12T22:52:30Z")

</div>

You need to use the ‘–envs’ flag:

```auto
conda search --envs <pkg>

```

That will search all of your conda environments.

---

<div class="post-metadata">

**Author:** ![Jon\_Crump](https://avatars.discourse-cdn.com/v4/letter/j/f5a800/32.png) [@Jon\_Crump](https://forum.anaconda.com/u/Jon_Crump)\
**Post date:** [January 12, 2024, 11:26pm UTC](https://forum.anaconda.com/t/check-for-package-in-all-available-environments/66290/3 "2024-01-12T23:26:20Z")

</div>

Thanks everso @sweller . I knew there had to be a straightforward way to do this.
