1.5.2 Module Installation Commands

The following table describes the commands that are used to install content from Application Stream.

Command Syntax

Description of Action

Additional Information

dnf install package

Installs the specified package.

If a package is provided by a module stream, the dnf command resolves the required module stream and enables it automatically during package installation. In addition, the process is recursive for any package dependencies. Note that if more module streams satisfy the requirement, the default streams are used.

If the package is provided by a module stream that is not marked as default or is not enabled, that package is not recognized until you manually enable the applicable module stream.

dnf module enable module-name:stream

Enables a module or stream.

Use this command when you want to enable a module so that the packages are available to the system, but you do not necessarily want to install the module immediately.

Note that some modules might not define default streams. In this case, you must explicitly specify the stream. If you explicitly specify a stream and an alternate stream is set as the default, the enabled stream overrides the default stream for subsequent install requests.

dnf install @module-name

Alternatively, you can use:

dnf module install module-name

Installs a module. The @ character is shorthand to indicate that you intend to install a module.

If the module defines a default stream, or you have enabled a particular stream, you do not need to include stream and colon in the command syntax.

Be aware that some modules do not define default streams.

dnf install @module-name:stream

Alternatively, you can use:

dnf module install module-name:stream

Installs a module by using a specific stream and default profiles.

 

dnf install @module-name:stream/profile

Alternatively, you can use:

dnf module install module-name:stream/profile

Installs a module by using a specific stream and profile.