Skip to content

Instantly share code, notes, and snippets.

@brews
Last active April 7, 2022 21:43
Show Gist options
  • Save brews/a373f211af6eec036f6ba759b9b79281 to your computer and use it in GitHub Desktop.
Save brews/a373f211af6eec036f6ba759b9b79281 to your computer and use it in GitHub Desktop.
Get the size of packages from within active conda/miniconda/anaconda/mamba environment.
grep '"size":' ${CONDA_PREFIX}/conda-meta/*.json | sort -k3rn | sed 's/.*conda-meta\///g' | column -t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment