conda list gzip
conda list | grep gzip
OR if its installed in a given environment
conda activate myenv
or else just
activate myenv system depending followed by either of the first two commands.
It is better to use
conda-navigate a very nice and under used GUI, and would work in this particular instance. The details are found in an earlier post I made on esentially the same question here together with a pretty picture.
ls will only work if you type
ls ~/Anaconda3/bin | grep gzip , but depends on the installation, e.g. you might have installed miniconda.
Having said all that
conda is very cool, but whatever you do NEVER use
pip3 from this moment onwards EVER, it messes up your conda and you'll need to
env your way out of it.