mirror of https://github.com/CrimsonTome/tldr.git
mamba, mamba-repoquery: add pages (#9056)
parent
3b5a40e3a2
commit
899313c93d
|
@ -0,0 +1,20 @@
|
|||
# mamba repoquery
|
||||
|
||||
> Efficiently query conda and mamba package repositories and package dependencies.
|
||||
> More information: <https://mamba.readthedocs.io/en/latest/user_guide/mamba.html#repoquery>.
|
||||
|
||||
- Search for all available versions of a particular package:
|
||||
|
||||
`mamba repoquery search {{package_name}}`
|
||||
|
||||
- Search for all packages satisfying specific constraints:
|
||||
|
||||
`mamba repoquery search {{sphinx<5}}`
|
||||
|
||||
- List the dependencies of a package installed in the currently activated environment, in a tree format:
|
||||
|
||||
`mamba repoquery depends --tree {{scipy}}`
|
||||
|
||||
- Print packages in the current environment that require a particular package to be installed (i.e. inverse of `depends`):
|
||||
|
||||
`mamba repoquery whoneeds {{ipython}}`
|
|
@ -0,0 +1,37 @@
|
|||
# mamba
|
||||
|
||||
> Fast, cross-platform package manager, intended as a drop-in replacement for conda.
|
||||
> Some subcommands such as `mamba repoquery` have their own usage documentation.
|
||||
> More information: <https://mamba.readthedocs.io/en/latest/user_guide/mamba.html>.
|
||||
|
||||
- Create a new environment, installing the specified packages into it:
|
||||
|
||||
`mamba create --name {{environment_name}} {{python=3.10 matplotlib}}`
|
||||
|
||||
- Install packages into the current environment, specifying the package [c]hannel:
|
||||
|
||||
`mamba install -c {{conda-forge}} {{python=3.6 numpy}}`
|
||||
|
||||
- Update all packages in the current environment:
|
||||
|
||||
`mamba update --all`
|
||||
|
||||
- Search for a specific package across repositories:
|
||||
|
||||
`mamba repoquery search {{numpy}}`
|
||||
|
||||
- List all environments:
|
||||
|
||||
`mamba info --envs`
|
||||
|
||||
- Remove unused [p]ackages and [t]arballs from the cache:
|
||||
|
||||
`mamba clean -pt`
|
||||
|
||||
- Activate an environment:
|
||||
|
||||
`mamba activate {{environment_name}}`
|
||||
|
||||
- List all installed packages in the currently activated environment:
|
||||
|
||||
`mamba list`
|
Loading…
Reference in New Issue