How to get list of installed packages in Anaconda?

Use the Terminal or an Anaconda Prompt for the following steps.

To list all of the packages in the active environment:

conda list

To list all of the packages in a deactivated environment:

conda list -n myenv