From Fedora Project Wiki
No edit summary |
No edit summary |
||
Line 26: | Line 26: | ||
|results= | |results= | ||
The commands execute without error | The commands execute without error | ||
# {{#tag:pre| | # The first command will ask you to install the package , if installed it will output | ||
{{#tag:pre| | |||
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 | # 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 | ||
# The | {{#tag:pre| | ||
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 | |||
{{#tag:pre| | |||
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. | |||
{{#tag:pre| | |||
}} | |||
}} | }} |
Revision as of 00:55, 10 November 2017
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 module 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.