mamba-org / mamba

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

Implement `--file` for `micromamba remove` #2838

Open dhirschfeld opened 1 year ago

dhirschfeld commented 1 year ago

I can install test deps with micromamba install --yes --file requirements/test.txt but it seems there is no corresponding way to remove the same deps specified in the test.txt file?

dhirschfeld commented 1 year ago

Hacking it like below appears to work, but it would be good to support --file for remove also:

micromamba remove --yes $(cat requirements/test.txt)
jonashaag commented 1 year ago

Is this implemented in Conda?

dhirschfeld commented 1 year ago

It doesn't appear to be implemented in conda.

Nevertheless, I think it would still be nice to have the symmetry between the install and remove commands so that there is a corresponding micromamba remove command to undo a micromamba install --file requirements/test.txt - i.e. anything you can do with micromamba install you should be able to (just as easily) undo with micromamba remove.

dhirschfeld commented 1 year ago

Since you can hack it by cat'ing the file it's not a high-priority.

MacOS commented 1 month ago

I would be happy to take this on.