From Fedora Project Wiki

No edit summary
No edit summary
Line 7: Line 7:
|actions=
|actions=
=== Enabling Modules: ===
=== Enabling Modules: ===
# Enabling module <code>foo</code> with specific stream
# Enabling module <code>foo</code> with specific stream and profile
     <code>dnf module enable foo:stream</code>
     <code>dnf module enable foo:stream</code>
 
    <code> dnf module enable foo:stream/profile </code>
=== Disabling Modules: ===
=== Disabling Modules: ===
# Disabling module <code>foo</code> with a specific stream  
# Disabling module <code>foo</code> with a specific stream and profile
     <code>dnf module disable foo:stream </code>
     <code>dnf module disable foo:stream </code>
    <code> dnf module disable foo:stream/profile </code>
    
    


Line 19: Line 20:
# The first command prints "foo:stream is enabled".
# The first command prints "foo:stream is enabled".
# The second command prints <foo> is disabled
# The second command prints <foo> is disabled
|optional=Optionally provide hints for exploratory testing.
|optional= Try entering random profile names
}}
}}

Revision as of 18:06, 9 April 2018

Description

Enabling and Disabling Modules in Fedora Server

Setup

  1. Grab a Fedora Server and continue to install on a VM or Baremetal
  2. Login from the Cockpit Web-UI or server with the created user or root
  3. Check all available module here

How to test

Enabling Modules:

  1. Enabling module foo with specific stream and profile
   dnf module enable foo:stream
    dnf module enable foo:stream/profile 

Disabling Modules:

  1. Disabling module foo with a specific stream and profile
   dnf module disable foo:stream 
    dnf module disable foo:stream/profile 

Expected Results

The commands execute without error

  1. The first command prints "foo:stream is enabled".
  2. The second command prints <foo> is disabled

Optional

Try entering random profile names