How To Install lorax-composer on CentOS 8

lorax-composer is Lorax Image Composer API Server

Introduction

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

What is lorax-composer

lorax-composer provides a REST API for building images using lorax.

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

Install lorax-composer 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-composer using dnf by running the following command:

sudo dnf -y install lorax-composer

Install lorax-composer 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-composer using yum by running the following command:

sudo yum -y install lorax-composer

How To Uninstall lorax-composer on CentOS 8

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

sudo dnf remove lorax-composer

lorax-composer Package Contents on CentOS 8

/etc/lorax/composer.conf
/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/systemd/system/lorax-composer.service
/usr/lib/systemd/system/lorax-composer.socket
/usr/lib/tmpfiles.d/lorax-composer.conf
/usr/sbin/lorax-composer
/usr/share/lorax/composer
/usr/share/lorax/composer/alibaba.ks
/usr/share/lorax/composer/ami.ks
/usr/share/lorax/composer/ext4-filesystem.ks
/usr/share/lorax/composer/google.ks
/usr/share/lorax/composer/live-iso.ks
/usr/share/lorax/composer/openstack.ks
/usr/share/lorax/composer/partitioned-disk.ks
/usr/share/lorax/composer/qcow2.ks
/usr/share/lorax/composer/tar.ks
/usr/share/lorax/composer/vhd.ks
/usr/share/lorax/composer/vmdk.ks
/var/lib/lorax/composer
/var/lib/lorax/composer/blueprints
/var/lib/lorax/composer/blueprints/example-atlas.toml
/var/lib/lorax/composer/blueprints/example-development.toml
/var/lib/lorax/composer/blueprints/example-http-server.toml

References

Summary

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