How To Install distgen on Rocky Linux 8

In this tutorial we learn how to install distgen on Rocky Linux 8. distgen is Templating system/generator for distributions

Introduction

In this tutorial we learn how to install distgen on Rocky Linux 8.

What is distgen

Based on given template specification (configuration for template), template file and preexisting distribution metadata generate output file.

We can use yum or dnf to install distgen on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install distgen.

Install distgen on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install distgen

Install distgen on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install distgen using yum by running the following command:

sudo yum -y install distgen

How To Uninstall distgen on Rocky Linux 8

To uninstall only the distgen package we can use the following command:

sudo dnf remove distgen

distgen Package Contents on Rocky Linux 8

/usr/bin/dg
/usr/lib/python3.6/site-packages/distgen
/usr/lib/python3.6/site-packages/distgen-1.7-py3.6.egg-info
/usr/lib/python3.6/site-packages/distgen-1.7-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/distgen-1.7-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/distgen-1.7-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/distgen-1.7-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/distgen-1.7-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/distgen/__init__.py
/usr/lib/python3.6/site-packages/distgen/__pycache__
/usr/lib/python3.6/site-packages/distgen/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/distgen/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/distgen/__pycache__/commands.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/distgen/__pycache__/commands.cpython-36.pyc
/usr/lib/python3.6/site-packages/distgen/__pycache__/config.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/distgen/__pycache__/config.cpython-36.pyc
/usr/lib/python3.6/site-packages/distgen/__pycache__/distro_version.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/distgen/__pycache__/distro_version.cpython-36.pyc
/usr/lib/python3.6/site-packages/distgen/__pycache__/err.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/distgen/__pycache__/err.cpython-36.pyc
/usr/lib/python3.6/site-packages/distgen/__pycache__/generator.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/distgen/__pycache__/generator.cpython-36.pyc
/usr/lib/python3.6/site-packages/distgen/__pycache__/multispec.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/distgen/__pycache__/multispec.cpython-36.pyc
/usr/lib/python3.6/site-packages/distgen/__pycache__/pathmanager.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/distgen/__pycache__/pathmanager.cpython-36.pyc
/usr/lib/python3.6/site-packages/distgen/__pycache__/project.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/distgen/__pycache__/project.cpython-36.pyc
/usr/lib/python3.6/site-packages/distgen/__pycache__/version.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/distgen/__pycache__/version.cpython-36.pyc
/usr/lib/python3.6/site-packages/distgen/commands.py
/usr/lib/python3.6/site-packages/distgen/config.py
/usr/lib/python3.6/site-packages/distgen/distro_version.py
/usr/lib/python3.6/site-packages/distgen/err.py
/usr/lib/python3.6/site-packages/distgen/generator.py
/usr/lib/python3.6/site-packages/distgen/multispec.py
/usr/lib/python3.6/site-packages/distgen/pathmanager.py
/usr/lib/python3.6/site-packages/distgen/project.py
/usr/lib/python3.6/site-packages/distgen/version.py
/usr/share/distgen
/usr/share/distgen/distconf
/usr/share/distgen/distconf/centos-6-x86_64.yaml
/usr/share/distgen/distconf/centos-7-x86_64.yaml
/usr/share/distgen/distconf/centos-8-x86_64.yaml
/usr/share/distgen/distconf/fedora-20-i686.yaml
/usr/share/distgen/distconf/fedora-20-x86_64.yaml
/usr/share/distgen/distconf/fedora-21-i686.yaml
/usr/share/distgen/distconf/fedora-21-x86_64.yaml
/usr/share/distgen/distconf/fedora-22-i686.yaml
/usr/share/distgen/distconf/fedora-22-x86_64.yaml
/usr/share/distgen/distconf/fedora-23-i686.yaml
/usr/share/distgen/distconf/fedora-23-x86_64.yaml
/usr/share/distgen/distconf/fedora-24-i686.yaml
/usr/share/distgen/distconf/fedora-24-x86_64.yaml
/usr/share/distgen/distconf/fedora-25-i686.yaml
/usr/share/distgen/distconf/fedora-25-x86_64.yaml
/usr/share/distgen/distconf/fedora-26-i686.yaml
/usr/share/distgen/distconf/fedora-26-x86_64.yaml
/usr/share/distgen/distconf/fedora-27-i686.yaml
/usr/share/distgen/distconf/fedora-27-x86_64.yaml
/usr/share/distgen/distconf/fedora-28-i686.yaml
/usr/share/distgen/distconf/fedora-28-x86_64.yaml
/usr/share/distgen/distconf/fedora-29-i686.yaml
/usr/share/distgen/distconf/fedora-29-x86_64.yaml
/usr/share/distgen/distconf/fedora-30-i686.yaml
/usr/share/distgen/distconf/fedora-30-x86_64.yaml
/usr/share/distgen/distconf/fedora-31-i686.yaml
/usr/share/distgen/distconf/fedora-31-x86_64.yaml
/usr/share/distgen/distconf/fedora-32-i686.yaml
/usr/share/distgen/distconf/fedora-32-x86_64.yaml
/usr/share/distgen/distconf/fedora-33-i686.yaml
/usr/share/distgen/distconf/fedora-33-x86_64.yaml
/usr/share/distgen/distconf/fedora-34-i686.yaml
/usr/share/distgen/distconf/fedora-34-x86_64.yaml
/usr/share/distgen/distconf/fedora-35-i686.yaml
/usr/share/distgen/distconf/fedora-35-x86_64.yaml
/usr/share/distgen/distconf/fedora-rawhide-i686.yaml
/usr/share/distgen/distconf/fedora-rawhide-x86_64.yaml
/usr/share/distgen/distconf/lib
/usr/share/distgen/distconf/lib/centos.yaml
/usr/share/distgen/distconf/lib/fedora.yaml
/usr/share/distgen/distconf/lib/general.yaml
/usr/share/distgen/distconf/lib/rhel.yaml
/usr/share/distgen/distconf/lib/rpmsystems.yaml
/usr/share/distgen/distconf/rhel-7-x86_64.yaml
/usr/share/distgen/distconf/rhel-7.2-x86_64.yaml
/usr/share/distgen/distconf/rhel-7.3-x86_64.yaml
/usr/share/distgen/distconf/rhel-8-x86_64.yaml
/usr/share/distgen/templates
/usr/share/distgen/templates/container
/usr/share/distgen/templates/container/docker
/usr/share/distgen/templates/container/docker/parts.tpl
/usr/share/distgen/templates/docker.tpl
/usr/share/distgen/templates/general.tpl
/usr/share/distgen/templates/makefile-macros.tpl
/usr/share/doc/distgen
/usr/share/doc/distgen/AUTHORS
/usr/share/doc/distgen/NEWS
/usr/share/doc/distgen/docs
/usr/share/doc/distgen/docs/Makefile
/usr/share/doc/distgen/docs/builtins.rst
/usr/share/doc/distgen/docs/conf.py
/usr/share/doc/distgen/docs/config.rst
/usr/share/doc/distgen/docs/index.rst
/usr/share/doc/distgen/docs/intro.rst
/usr/share/doc/distgen/docs/macros.rst
/usr/share/doc/distgen/docs/spec_expansion.rst
/usr/share/doc/distgen/docs/spec_multispec.rst
/usr/share/doc/distgen/docs/usage.rst
/usr/share/licenses/distgen
/usr/share/licenses/distgen/LICENSE
/usr/share/man/man1/dg.1.gz

References

Summary

In this tutorial we learn how to install distgen on Rocky Linux 8 using yum and dnf.