How To Install modulemd-tools on Fedora 36

In this tutorial we learn how to install modulemd-tools in Fedora 36. modulemd-tools is Collection of tools for parsing and generating modulemd YAML files

Introduction

In this tutorial we learn how to install modulemd-tools on Fedora 36.

What is modulemd-tools

Tools provided by this package repo2module - Takes a YUM repository on its input and creates modules.yaml containing YAML module definitions generated for each package. dir2module - Generates a module YAML definition based on essential module information provided via command-line parameters. The packages provided by the module are found in a specified directory or a text file containing their list. createrepo_mod - A small wrapper around createrepo_c and modifyrepo_c to provide an easy tool for generating module repositories. modulemd-add-platform - Add a new context configuration for a new platform into a modulemd-packager file. modulemd-merge - Merge several modules.yaml files into one. This is useful for example if you have several yum repositories and want to merge them into one. modulemd-generate-macros - Generate module-build-macros SRPM package, which is a central piece for building modules. It should be present in the buildroot before any other module packages are submitted to be built. bld2repo - Simple tool for dowloading build required RPMs of a modular build from koji.

We can use yum or dnf to install modulemd-tools on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install modulemd-tools.

Install modulemd-tools on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install modulemd-tools using dnf by running the following command:

sudo dnf -y install modulemd-tools

Install modulemd-tools on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install modulemd-tools using yum by running the following command:

sudo yum -y install modulemd-tools

How To Uninstall modulemd-tools on Fedora 36

To uninstall only the modulemd-tools package we can use the following command:

sudo dnf remove modulemd-tools

modulemd-tools Package Contents on Fedora 36

/usr/bin/bld2repo
/usr/bin/createrepo_mod
/usr/bin/dir2module
/usr/bin/modulemd-add-platform
/usr/bin/modulemd-generate-macros
/usr/bin/modulemd-merge
/usr/bin/repo2module
/usr/lib/python3.10/site-packages/bld2repo
/usr/lib/python3.10/site-packages/bld2repo-0.1-py3.10.egg-info
/usr/lib/python3.10/site-packages/bld2repo-0.1-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/bld2repo-0.1-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/bld2repo-0.1-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/bld2repo-0.1-py3.10.egg-info/entry_points.txt
/usr/lib/python3.10/site-packages/bld2repo-0.1-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/bld2repo-0.1-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/bld2repo/__init__.py
/usr/lib/python3.10/site-packages/bld2repo/__pycache__
/usr/lib/python3.10/site-packages/bld2repo/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/bld2repo/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/bld2repo/__pycache__/cli.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/bld2repo/__pycache__/cli.cpython-310.pyc
/usr/lib/python3.10/site-packages/bld2repo/__pycache__/config.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/bld2repo/__pycache__/config.cpython-310.pyc
/usr/lib/python3.10/site-packages/bld2repo/__pycache__/utils.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/bld2repo/__pycache__/utils.cpython-310.pyc
/usr/lib/python3.10/site-packages/bld2repo/cli.py
/usr/lib/python3.10/site-packages/bld2repo/config.py
/usr/lib/python3.10/site-packages/bld2repo/utils.py
/usr/lib/python3.10/site-packages/createrepo_mod
/usr/lib/python3.10/site-packages/createrepo_mod-0.1-py3.10.egg-info
/usr/lib/python3.10/site-packages/createrepo_mod-0.1-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/createrepo_mod-0.1-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/createrepo_mod-0.1-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/createrepo_mod-0.1-py3.10.egg-info/entry_points.txt
/usr/lib/python3.10/site-packages/createrepo_mod-0.1-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/createrepo_mod/__init__.py
/usr/lib/python3.10/site-packages/createrepo_mod/__pycache__
/usr/lib/python3.10/site-packages/createrepo_mod/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/createrepo_mod/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/createrepo_mod/__pycache__/createrepo_mod.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/createrepo_mod/__pycache__/createrepo_mod.cpython-310.pyc
/usr/lib/python3.10/site-packages/createrepo_mod/createrepo_mod.py
/usr/lib/python3.10/site-packages/dir2module
/usr/lib/python3.10/site-packages/dir2module-0.1-py3.10.egg-info
/usr/lib/python3.10/site-packages/dir2module-0.1-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/dir2module-0.1-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/dir2module-0.1-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/dir2module-0.1-py3.10.egg-info/entry_points.txt
/usr/lib/python3.10/site-packages/dir2module-0.1-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/dir2module/__init__.py
/usr/lib/python3.10/site-packages/dir2module/__pycache__
/usr/lib/python3.10/site-packages/dir2module/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/dir2module/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/dir2module/__pycache__/dir2module.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/dir2module/__pycache__/dir2module.cpython-310.pyc
/usr/lib/python3.10/site-packages/dir2module/dir2module.py
/usr/lib/python3.10/site-packages/modulemd_add_platform
/usr/lib/python3.10/site-packages/modulemd_add_platform-0.0.1-py3.10.egg-info
/usr/lib/python3.10/site-packages/modulemd_add_platform-0.0.1-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/modulemd_add_platform-0.0.1-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/modulemd_add_platform-0.0.1-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/modulemd_add_platform-0.0.1-py3.10.egg-info/entry_points.txt
/usr/lib/python3.10/site-packages/modulemd_add_platform-0.0.1-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/modulemd_add_platform-0.0.1-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/modulemd_add_platform/__init__.py
/usr/lib/python3.10/site-packages/modulemd_add_platform/__pycache__
/usr/lib/python3.10/site-packages/modulemd_add_platform/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/modulemd_add_platform/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/modulemd_add_platform/__pycache__/modulemd_add_platform.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/modulemd_add_platform/__pycache__/modulemd_add_platform.cpython-310.pyc
/usr/lib/python3.10/site-packages/modulemd_add_platform/modulemd_add_platform.py
/usr/lib/python3.10/site-packages/modulemd_merge
/usr/lib/python3.10/site-packages/modulemd_merge-0.1-py3.10.egg-info
/usr/lib/python3.10/site-packages/modulemd_merge-0.1-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/modulemd_merge-0.1-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/modulemd_merge-0.1-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/modulemd_merge-0.1-py3.10.egg-info/entry_points.txt
/usr/lib/python3.10/site-packages/modulemd_merge-0.1-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/modulemd_merge/__init__.py
/usr/lib/python3.10/site-packages/modulemd_merge/__pycache__
/usr/lib/python3.10/site-packages/modulemd_merge/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/modulemd_merge/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/modulemd_merge/__pycache__/modulemd_merge.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/modulemd_merge/__pycache__/modulemd_merge.cpython-310.pyc
/usr/lib/python3.10/site-packages/modulemd_merge/modulemd_merge.py
/usr/lib/python3.10/site-packages/modulemd_tools
/usr/lib/python3.10/site-packages/modulemd_tools-0.1-py3.10.egg-info
/usr/lib/python3.10/site-packages/modulemd_tools-0.1-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/modulemd_tools-0.1-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/modulemd_tools-0.1-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/modulemd_tools-0.1-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/modulemd_tools/__init__.py
/usr/lib/python3.10/site-packages/modulemd_tools/__pycache__
/usr/lib/python3.10/site-packages/modulemd_tools/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/modulemd_tools/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/modulemd_tools/__pycache__/yaml.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/modulemd_tools/__pycache__/yaml.cpython-310.pyc
/usr/lib/python3.10/site-packages/modulemd_tools/yaml.py
/usr/lib/python3.10/site-packages/repo2module
/usr/lib/python3.10/site-packages/repo2module-0.1-py3.10.egg-info
/usr/lib/python3.10/site-packages/repo2module-0.1-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/repo2module-0.1-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/repo2module-0.1-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/repo2module-0.1-py3.10.egg-info/entry_points.txt
/usr/lib/python3.10/site-packages/repo2module-0.1-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/repo2module/__init__.py
/usr/lib/python3.10/site-packages/repo2module/__pycache__
/usr/lib/python3.10/site-packages/repo2module/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/repo2module/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/repo2module/__pycache__/cli.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/repo2module/__pycache__/cli.cpython-310.pyc
/usr/lib/python3.10/site-packages/repo2module/cli.py
/usr/share/doc/modulemd-tools
/usr/share/doc/modulemd-tools/README.md
/usr/share/licenses/modulemd-tools
/usr/share/licenses/modulemd-tools/LICENSE
/usr/share/man/man1/bld2repo.1.gz
/usr/share/man/man1/createrepo_mod.1.gz
/usr/share/man/man1/dir2module.1.gz
/usr/share/man/man1/modulemd-add-platform.1.gz
/usr/share/man/man1/modulemd-generate-macros.1.gz
/usr/share/man/man1/modulemd-merge.1.gz
/usr/share/man/man1/repo2module.1.gz

References

Summary

In this tutorial we learn how to install modulemd-tools on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).