From Fedora Project Wiki

Line 6: Line 6:
 
|actions=
 
|actions=
 
=== Install Modules <code>foo</code> from Stream and profile: ===
 
=== Install Modules <code>foo</code> from Stream and profile: ===
    # Run <code> dnf module install foo:stream/profile </code>
+
        # Run <code> dnf module install foo:stream/profile </code>
  
 
=== Install module <code>foo</code> with Profile, Stream and Version ===
 
=== Install module <code>foo</code> with Profile, Stream and Version ===
    # Run <code> dnf module isntall foo:stream:version/profile </code>
+
        # Run <code> dnf module isntall foo:stream:version/profile </code>
  
 
=== Remove module <code>foo</code> with Profile, Stream and Version: ===
 
=== Remove module <code>foo</code> with Profile, Stream and Version: ===
    # Run <code> dnf module remove foo:stream:version/profile </code>
+
        # Run <code> dnf module remove foo:stream:version/profile </code>
  
  

Revision as of 19:37, 9 April 2018

Description

Install, remove and udpate modules in Fedora Server

Setup

  1. Grab Fedora Server and continue to install on a VM or Baremetal
  2. Login as root or run the following with sudo

How to test

Install Modules foo from Stream and profile:

       # Run  dnf module install foo:stream/profile 

Install module foo with Profile, Stream and Version

        # Run  dnf module isntall foo:stream:version/profile 

Remove module foo with Profile, Stream and Version:

       # Run  dnf module remove foo:stream:version/profile 

Expected Results

The commands execute without error

  1. The first command will ask you to install the package , if installed it will output
  2. The second command will install the package from the desired stream , if the desired stream doesn't match the current stream , it will ask to switch stream
  3. The install with stream:version/profile will output this ===
  4. The remove module command will output the following.