mamba-org / mamba

The Fast Cross-Platform Package Manager
https://mamba.readthedocs.io
BSD 3-Clause "New" or "Revised" License
6.79k stars 348 forks source link

Missing "mamba repoquery -n ENVIRONMENT" parameter? #3334

Open jypeter opened 3 months ago

jypeter commented 3 months ago

I get the impression that mamba repoquery can only display information about the current environment

Is there a way to be in one environment (e.g. base), and use repoquery to get information about another (existing) environment?

Some example below

(base)  >which mamba
/home/share/unix_files/cdat/miniconda3_2024-03/bin/mamba

(base)  >mamba repoquery whoneeds --pretty numba

Executing the query numba

numba may not be installed. Try giving a channel with '-c,--channel' option for remote repoquery

(base)  >mamba repoquery whoneeds -n bauer_env --pretty numba
usage: mamba [-h] [-v] [--no-plugins] [-V] COMMAND ...
mamba: error: unrecognized arguments: -n numba

(base)  >conda activate bauer_env

(bauer_env)  >which mamba
/home/share/unix_files/cdat/miniconda3_2024-03/condabin/mamba

(bauer_env)  >which python
/home/share/unix_files/cdat/miniconda3_2024-03/envs/bauer_env/bin/python

(bauer_env)  >mamba repoquery whoneeds --pretty numba    
Executing the query numba

numba
  ├─ sparse[0.15.4]
  └─ xesmf[0.8.6]
Hind-M commented 3 months ago

Indeed, we only support repoquery with current environment at the moment. That could be an enhancement to add in the future, but in the short/medium term, all efforts are focused on the mamba 2.0 release :)

jypeter commented 3 months ago

Thank you for adding the feature-request tag!