From Fedora Project Wiki
Description
Install, remove and udpate modules in Fedora Modular
Setup
- Download a nightly image or RC of Fedora 27 Modular Server
- Continue to install on a VM or Baremetal
- Login as root
How to test
Enable and Install Modules from default Stream:
# Run dnf install @module
Enable and Install Modules from named Stream and default Install Profile:
# Run dnf install @module:stream
Enable and install the named Stream, default Install Profile, and particular version
# Run dnf install @module:stream:version
Enable and install the named Stream, named Install Profile, and particular version
# Run dnf install @module:stream:version/profile
Remove Modules:
# Run dnf remove module
Update Modules:
# Run dnf module udpate <modeule_name>
Expected Results
The commands execute without error
The first command will ask you to install the package , if installed it will output
dnf install @nodejs Last metadata expiration check: 2:35:15 ago on Fri 10 Nov 2017 03:35:01 AM IST. Nothing to install. Enabled modules: nodejs:8
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
dnf install @nodejs:6 Last metadata expiration check: 2:38:01 ago on Fri 10 Nov 2017 03:35:01 AM IST. Enabling different stream for 'nodejs' Is this ok [y/N]: y Dependencies resolved. ===================================================================================================================================================================================================================================================== Package Arch Version Repository Size ===================================================================================================================================================================================================================================================== Downgrading: nodejs x86_64 1:6.11.3-2.module_57e455e2 fedora-modular-server 4.8 M npm x86_64 1:3.10.10-1.6.11.3.2.module_57e455e2 fedora-modular-server 2.5 M Transaction Summary ===================================================================================================================================================================================================================================================== Downgrade 2 Packages Total download size: 7.3 M Is this ok [y/N]:
The install with stream:version/profile will output this
dnf install @389-ds:1.3:20171102233352/default Last metadata expiration check: 2:44:11 ago on Fri 10 Nov 2017 03:35:01 AM IST. Dependencies resolved. ===================================================================================================================================================================================================================================================== Package Arch Version Repository Size ===================================================================================================================================================================================================================================================== Installing module packages: 389-ds-base x86_64 1.3.7.6-1.module_cceea75a fedora-modular-server 1.8 M 389-ds-base-libs x86_64 1.3.7.6-1.module_cceea75a fedora-modular-server 741 k Installing dependencies: audit-libs-python3 x86_64 2.7.7-5.module_8a5444d0 fedora-modular-server 81 k checkpolicy x86_64 2.7-1.module_8a5444d0 fedora-modular-server 330 k
- The remove module command will output the following.
dnf remove nodejs Dependencies resolved. ===================================================================================================================================================================================================================================================== Package Arch Version Repository Size ===================================================================================================================================================================================================================================================== Removing: nodejs x86_64 1:8.9.0-1.module_7b04e1ed @fedora-modular-server 19 M Removing dependent packages: npm x86_64 1:5.5.1-1.8.9.0.1.module_7b04e1ed.2 @fedora-modular-server 18 M Removing unused dependencies: libicu x86_64 57.1-8.module_8a5444d0 @fedora-modular-server 29 M Transaction Summary ===================================================================================================================================================================================================================================================== Remove 3 Packages Freed space: 67 M Is this ok [y/N]: