How To Install lorax on CentOS 8

lorax is Tool for creating the anaconda install images

Introduction

In this tutorial we learn how to install lorax on CentOS 8.

What is lorax

Lorax is a tool for creating the anaconda install images. It also includes livemedia-creator which is used to create bootable livemedia, including live isos and disk images. It can use libvirtd for the install, or Anaconda’s image install feature.

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

Install lorax on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install lorax

Install lorax on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install lorax

How To Uninstall lorax on CentOS 8

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

sudo dnf remove lorax

lorax Package Contents on CentOS 8

/etc/lorax
/etc/lorax/lorax.conf
/usr/bin/image-minimizer
/usr/lib/python3.6/site-packages/lorax-devel-py3.6.egg-info
/usr/lib/python3.6/site-packages/pylorax
/usr/lib/python3.6/site-packages/pylorax/__init__.py
/usr/lib/python3.6/site-packages/pylorax/__pycache__
/usr/lib/python3.6/site-packages/pylorax/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/base.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/base.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/buildstamp.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/buildstamp.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/cmdline.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/cmdline.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/creator.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/creator.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/decorators.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/decorators.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/discinfo.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/discinfo.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/dnfbase.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/dnfbase.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/dnfhelper.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/dnfhelper.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/executils.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/executils.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/imgutils.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/imgutils.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/installer.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/installer.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/ltmpl.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/ltmpl.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/monitor.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/monitor.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/mount.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/mount.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/output.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/output.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/sysutils.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/sysutils.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/treebuilder.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/treebuilder.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/treeinfo.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/treeinfo.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/version.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/__pycache__/version.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/api
/usr/lib/python3.6/site-packages/pylorax/api/__init__.py
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/bisect.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/bisect.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/checkparams.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/checkparams.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/cmdline.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/cmdline.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/compose.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/compose.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/config.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/config.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/crossdomain.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/crossdomain.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/dnfbase.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/dnfbase.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/errors.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/errors.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/gitrpm.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/gitrpm.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/projects.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/projects.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/queue.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/queue.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/recipes.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/recipes.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/regexes.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/regexes.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/server.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/server.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/timestamp.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/timestamp.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/v0.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/v0.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/workspace.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pylorax/api/__pycache__/workspace.cpython-36.pyc
/usr/lib/python3.6/site-packages/pylorax/api/bisect.py
/usr/lib/python3.6/site-packages/pylorax/api/checkparams.py
/usr/lib/python3.6/site-packages/pylorax/api/cmdline.py
/usr/lib/python3.6/site-packages/pylorax/api/compose.py
/usr/lib/python3.6/site-packages/pylorax/api/config.py
/usr/lib/python3.6/site-packages/pylorax/api/crossdomain.py
/usr/lib/python3.6/site-packages/pylorax/api/dnfbase.py
/usr/lib/python3.6/site-packages/pylorax/api/errors.py
/usr/lib/python3.6/site-packages/pylorax/api/gitrpm.py
/usr/lib/python3.6/site-packages/pylorax/api/projects.py
/usr/lib/python3.6/site-packages/pylorax/api/queue.py
/usr/lib/python3.6/site-packages/pylorax/api/recipes.py
/usr/lib/python3.6/site-packages/pylorax/api/regexes.py
/usr/lib/python3.6/site-packages/pylorax/api/server.py
/usr/lib/python3.6/site-packages/pylorax/api/timestamp.py
/usr/lib/python3.6/site-packages/pylorax/api/v0.py
/usr/lib/python3.6/site-packages/pylorax/api/workspace.py
/usr/lib/python3.6/site-packages/pylorax/base.py
/usr/lib/python3.6/site-packages/pylorax/buildstamp.py
/usr/lib/python3.6/site-packages/pylorax/cmdline.py
/usr/lib/python3.6/site-packages/pylorax/creator.py
/usr/lib/python3.6/site-packages/pylorax/decorators.py
/usr/lib/python3.6/site-packages/pylorax/discinfo.py
/usr/lib/python3.6/site-packages/pylorax/dnfbase.py
/usr/lib/python3.6/site-packages/pylorax/dnfhelper.py
/usr/lib/python3.6/site-packages/pylorax/executils.py
/usr/lib/python3.6/site-packages/pylorax/imgutils.py
/usr/lib/python3.6/site-packages/pylorax/installer.py
/usr/lib/python3.6/site-packages/pylorax/ltmpl.py
/usr/lib/python3.6/site-packages/pylorax/monitor.py
/usr/lib/python3.6/site-packages/pylorax/mount.py
/usr/lib/python3.6/site-packages/pylorax/output.py
/usr/lib/python3.6/site-packages/pylorax/sysutils.py
/usr/lib/python3.6/site-packages/pylorax/treebuilder.py
/usr/lib/python3.6/site-packages/pylorax/treeinfo.py
/usr/lib/python3.6/site-packages/pylorax/version.py
/usr/lib/tmpfiles.d/lorax.conf
/usr/sbin/livemedia-creator
/usr/sbin/lorax
/usr/sbin/mkefiboot
/usr/share/doc/lorax
/usr/share/doc/lorax/AUTHORS
/usr/share/doc/lorax/composer-cli.rst
/usr/share/doc/lorax/livemedia-creator.rst
/usr/share/doc/lorax/lorax-composer.rst
/usr/share/doc/lorax/lorax.rst
/usr/share/doc/lorax/product-images.rst
/usr/share/doc/lorax/rhel-atomic-pxe-live-novirt.ks
/usr/share/doc/lorax/rhel-atomic-pxe-live.ks
/usr/share/doc/lorax/rhel-container.ks
/usr/share/doc/lorax/rhel-livemedia.ks
/usr/share/doc/lorax/rhel-minimal.ks
/usr/share/doc/lorax/rhel-minimized.ks
/usr/share/doc/lorax/rhel-openstack.ks
/usr/share/doc/lorax/rhel-vagrant.ks
/usr/share/licenses/lorax
/usr/share/licenses/lorax/COPYING
/usr/share/lorax
/usr/share/man/man1/composer-cli.1.gz
/usr/share/man/man1/livemedia-creator.1.gz
/usr/share/man/man1/lorax-composer.1.gz
/usr/share/man/man1/lorax.1.gz

References

Summary

In this tutorial we learn how to install lorax on CentOS 8 using yum and dnf.