From Fedora Project Wiki

Description

Listing all enabled and disabled modules in Fedora 27 Modular Server

Setup

  1. Download a nightly image or RC of Fedora 27 Modular Server
  2. Continue to install on a VM or Baremetal
  3. Login from the Cockpit Web-UI or server with the created user or root

How to test

Listing All Modules:

   # Execute  dnf module list --all 

Listing All Enbaled Modules:

   # Execute  dnf module list --enabled 

Listing All Disabled Modules:

   # Execute  dnf module list --disabled 

Listing All Installed modules

   # Execute  dnf module list --installed 

Expected Results

The commands execute without error

  1. The first command prints all the modules with their stream , version and profile details.
dnf module list --all                                                                                                                                                                                                            
Last metadata expiration check: 2:18:16 ago on Fri 10 Nov 2017 03:35:01 AM IST.                                                                                                                                                                      
Fedora Modular Server 27 - x86_64                                                                                                                                                                                                                    
Name                                                         Stream                                                  Version                                                  Profiles                                                               
389-ds                                                       1.3 [d]                                                 20171102233352                                           default                                                                
X11-base                                                     f27 [d][e]                                              20171103131108                                           default                                                                
                                                                                                                                                                                                                                                                                                                                                                              Hint: [d]efault, [e]nabled, [i]nstalled, [l]ocked
  1. The second command prints all the modules which are enabled in the the system
dnf module list --enabled                                                                                                                                                                                                        
Last metadata expiration check: 2:26:47 ago on Fri 10 Nov 2017 03:35:01 AM IST.                                                                                                                                                                      
Fedora Modular Server 27 - x86_64                                                                                                                                                                                                                    
Name                                                         Stream                                                  Version                                                  Profiles                                                               
X11-base                                                     f27 [d][e]                                              20171103131108                                           default                                                                
bind                                                         9 [d][e]                                                20171018084824                                           client, default, ...                                                   
freeipa                                                      4.6 [d][e]                                              20171104182858                                           default                                                                
hardware-support                                             f27 [d][e]                                              20171017135323                                                                                                                  
host                                                         f27 [d][e]                                              20171107172526                                                                                                                  
httpd                                                        2.4 [d][e]                                              20171106215612                                           default                                                                
installer                                                    f27 [d][e]                                              20171030201659                                           default                                                                
networking-base                                              f27 [d][e]                                              20171107221720                                           default                                                                
nodejs                                                       8 [d][e]                                                20171101135042                                           default [i], development, ...                                          
platform                                                     f27 [d][e]                                              20171107221036                                           buildroot, srpm-buildroot                                              
postgresql                                                   9.6 [d][e]                                              20171105174222                                           client, default [i], ...                                               
python2                                                      master [d][e]                                           20171003150125                                           default, full, ..
  1. The third command prints all the modules which are presently disabled
dnf module list --disabled                                                                                                                                                                                                       
Last metadata expiration check: 2:28:41 ago on Fri 10 Nov 2017 03:35:01 AM IST.                                                                                                                                                                      
Fedora Modular Server 27 - x86_64                                                                                                                                                                                                                    
Name                                                          Stream                                                 Version                                                    Profiles                                                             
389-ds                                                        1.3 [d]                                                20171102233352                                             default                                                              
apache-commons                                                f27 [d]                                                20171018085030                                             default                                                              
autotools                                                     f27 [d]                                                20171018090442                                             default                                                              
cloud-init                                                    f27 [d]                                                20171017101923                                             default                                                              
fonts                                                         f27 [d]                                                20171106163600                                             default, everything                                                  
java                                                          8 [d]                                                  20171025083238                                             default
  1. The fourth command prints all the modules which are presently installed
dnf module list --installed                                                                                                                                                                                                      
Last metadata expiration check: 2:30:32 ago on Fri 10 Nov 2017 03:35:01 AM IST.                                                                                                                                                                      
Fedora Modular Server 27 - x86_64                                                                                                                                                                                                                    
Name                                                    Stream                                                  Version                                                     Profiles                                                                 
nodejs                                                  8 [d][e]                                                20171101135042                                              default [i], development, ...                                            
postgresql                                              9.6 [d][e]                                              20171105174222                                              client, default [i], ...                                                 
                                                                                                                                                                                                                                                     
Hint: [d]efault, [e]nabled, [i]nstalled, [l]ocked 

Optional

Optionally provide hints for exploratory testing.