← 返回命令列表

Linux command

dnf-module 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

dnf module list

Example

dnf module list [package_name]

Enable

sudo dnf module enable [package_name]:[stream]

Install

dnf module install [package_name]:[stream]

说明

dnf module manages package modularity, allowing multiple versions of software to coexist in repositories. Modules group packages with a specific purpose, and streams represent different versions. Modularity is used in RHEL 8+ and Fedora for software like Python, Node.js, and PHP where multiple versions need to be available.

参数

list
List available modules
enable _module:stream_
Enable a module stream
disable _module_
Disable a module
install _module:stream_
Install module packages
remove _module_
Remove module packages
reset _module_
Reset module state

FAQ

What is the dnf-module command used for?

dnf module manages package modularity, allowing multiple versions of software to coexist in repositories. Modules group packages with a specific purpose, and streams represent different versions. Modularity is used in RHEL 8+ and Fedora for software like Python, Node.js, and PHP where multiple versions need to be available.

How do I run a basic dnf-module example?

Run `dnf module list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does list do in dnf-module?

List available modules