Repository: conda/conda

Issue:
Conda env remove doesn't list packages in that env
With Conda 4.3:

```
(root) [root@2e532c56ecac ~]# conda list -n test
# packages in environment at /opt/conda/envs/test:
#
ca-certificates           2017.08.26           h1d4fec5_0  
libedit                   3.1                  heed3624_0  
libffi                    3.2.1                hd88cf55_4  
libgcc-ng                 7.2.0                h7cc24e2_2  
libstdcxx-ng              7.2.0                h7a57d05_2  
ncurses                   6.0                  h9df7e31_2  
openssl                   1.0.2n               hb7f436b_0  
python                    3.6.4                hc3d631a_0  
readline                  7.0                  ha6073c6_4  
sqlite                    3.20.1               hb898158_2  
tk                        8.6.7                hc745277_3  
xz                        5.2.3                h55aa19d_2  
zlib                      1.2.11               ha838bed_2  
(root) [root@2e532c56ecac ~]# conda env remove -n test

Package plan for package removal in environment /opt/conda/envs/test:

The following packages will be REMOVED:

    ca-certificates: 2017.08.26-h1d4fec5_0
    libedit:         3.1-heed3624_0       
    libffi:          3.2.1-hd88cf55_4     
    libgcc-ng:       7.2.0-h7cc24e2_2     
    libstdcxx-ng:    7.2.0-h7a57d05_2     
    ncurses:         6.0-h9df7e31_2       
    openssl:         1.0.2n-hb7f436b_0    
    python:          3.6.4-hc3d631a_0     
    readline:        7.0-ha6073c6_4       
    sqlite:          3.20.1-hb898158_2    
    tk:              8.6.7-hc745277_3     
    xz:              5.2.3-h55aa19d_2     
    zlib:            1.2.11-ha838bed_2    

Proceed ([y]/n)? 
```

With Conda 4.4:

```
(base) [root@ead34697ba5f ~]# conda list -n test                                                                                                                                                                   
# packages in environment at /opt/conda/envs/test:
#
ca-certificates           2017.08.26           h1d4fec5_0  
libedit                   3.1                  heed3624_0  
libffi                    3.2.1                hd88cf55_4  
libgcc-ng                 7.2.0                h7cc24e2_2  
libstdcxx-ng              7.2.0                h7a57d05_2  
ncurses                   6.0                  h9df7e31_2  
openssl                   1.0.2n               hb7f436b_0  
python                    3.6.4                hc3d631a_0  
readline                  7.0                  ha6073c6_4  
sqlite                    3.20.1               hb898158_2  
tk                        8.6.7                hc745277_3  
xz                        5.2.3                h55aa19d_2  
zlib                      1.2.11               ha838bed_2  

(base) [root@ead34697ba5f ~]# conda env remove -n test

Remove all packages in environment /opt/conda/envs/test:

Proceed ([y]/n)? 
```
Conda env remove doesn't list packages in that env
With Conda 4.3:

```
(root) [root@2e532c56ecac ~]# conda list -n test
# packages in environment at /opt/conda/envs/test:
#
ca-certificates           2017.08.26           h1d4fec5_0  
libedit                   3.1                  heed3624_0  
libffi                    3.2.1                hd88cf55_4  
libgcc-ng                 7.2.0                h7cc24e2_2  
libstdcxx-ng              7.2.0                h7a57d05_2  
ncurses                   6.0                  h9df7e31_2  
openssl                   1.0.2n               hb7f436b_0  
python                    3.6.4                hc3d631a_0  
readline                  7.0                  ha6073c6_4  
sqlite                    3.20.1               hb898158_2  
tk                        8.6.7                hc745277_3  
xz                        5.2.3                h55aa19d_2  
zlib                      1.2.11               ha838bed_2  
(root) [root@2e532c56ecac ~]# conda env remove -n test

Package plan for package removal in environment /opt/conda/envs/test:

The following packages will be REMOVED:

    ca-certificates: 2017.08.26-h1d4fec5_0
    libedit:         3.1-heed3624_0       
    libffi:          3.2.1-hd88cf55_4     
    libgcc-ng:       7.2.0-h7cc24e2_2     
    libstdcxx-ng:    7.2.0-h7a57d05_2     
    ncurses:         6.0-h9df7e31_2       
    openssl:         1.0.2n-hb7f436b_0    
    python:          3.6.4-hc3d631a_0     
    readline:        7.0-ha6073c6_4       
    sqlite:          3.20.1-hb898158_2    
    tk:              8.6.7-hc745277_3     
    xz:              5.2.3-h55aa19d_2     
    zlib:            1.2.11-ha838bed_2    

Proceed ([y]/n)? 
```

With Conda 4.4:

```
(base) [root@ead34697ba5f ~]# conda list -n test                                                                                                                                                                   
# packages in environment at /opt/conda/envs/test:
#
ca-certificates           2017.08.26           h1d4fec5_0  
libedit                   3.1                  heed3624_0  
libffi                    3.2.1                hd88cf55_4  
libgcc-ng                 7.2.0                h7cc24e2_2  
libstdcxx-ng              7.2.0                h7a57d05_2  
ncurses                   6.0                  h9df7e31_2  
openssl                   1.0.2n               hb7f436b_0  
python                    3.6.4                hc3d631a_0  
readline                  7.0                  ha6073c6_4  
sqlite                    3.20.1               hb898158_2  
tk                        8.6.7                hc745277_3  
xz                        5.2.3                h55aa19d_2  
zlib                      1.2.11               ha838bed_2  

(base) [root@ead34697ba5f ~]# conda env remove -n test

Remove all packages in environment /opt/conda/envs/test:

Proceed ([y]/n)? 
```


Discussion:

Resolving patch:
diff --git a/conda/cli/main_remove.py b/conda/cli/main_remove.py
--- a/conda/cli/main_remove.py
+++ b/conda/cli/main_remove.py
@@ -19,7 +19,7 @@
 from ..gateways.disk.test import is_conda_environment
 from ..instructions import PREFIX
 from ..models.match_spec import MatchSpec
-from ..plan import (add_unlink)
+from ..plan import (add_unlink, display_actions)
 
 log = logging.getLogger(__name__)
 
@@ -62,6 +62,7 @@ def execute(args, parser):
         action_groups = (actions, index),
 
         if not context.json:
+            display_actions(actions, index)
             confirm_yn()
         rm_rf(prefix)
         unregister_env(prefix)


Test patch: