How To Install lorax-templates-rhel on CentOS 8

lorax-templates-rhel is RHEL8 build templates for lorax and livemedia-creator

Introduction

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

What is lorax-templates-rhel

RHEL-specific Lorax templates for creating the boot.iso and live isos are placed in /usr/share/lorax/templates.d/80-rhel

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

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

sudo dnf -y install lorax-templates-rhel

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

sudo yum -y install lorax-templates-rhel

How To Uninstall lorax-templates-rhel on CentOS 8

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

sudo dnf remove lorax-templates-rhel

lorax-templates-rhel Package Contents on CentOS 8

/usr/share/lorax/templates.d/80-rhel
/usr/share/lorax/templates.d/80-rhel/aarch64.tmpl
/usr/share/lorax/templates.d/80-rhel/appliance
/usr/share/lorax/templates.d/80-rhel/appliance/libvirt.tmpl
/usr/share/lorax/templates.d/80-rhel/arm.tmpl
/usr/share/lorax/templates.d/80-rhel/config_files
/usr/share/lorax/templates.d/80-rhel/config_files/aarch64
/usr/share/lorax/templates.d/80-rhel/config_files/aarch64/boot.msg
/usr/share/lorax/templates.d/80-rhel/config_files/aarch64/grub.conf
/usr/share/lorax/templates.d/80-rhel/config_files/aarch64/grub2-efi.cfg
/usr/share/lorax/templates.d/80-rhel/config_files/common
/usr/share/lorax/templates.d/80-rhel/config_files/common/90-anaconda-no-auto-default.conf
/usr/share/lorax/templates.d/80-rhel/config_files/common/91-anaconda-autoconnect-slaves.conf
/usr/share/lorax/templates.d/80-rhel/config_files/common/92-anaconda-loglevel-debug.conf
/usr/share/lorax/templates.d/80-rhel/config_files/common/bash_history
/usr/share/lorax/templates.d/80-rhel/config_files/common/i18n
/usr/share/lorax/templates.d/80-rhel/config_files/common/libuser.conf
/usr/share/lorax/templates.d/80-rhel/config_files/common/org.gtk.Settings.Debug.gschema.override
/usr/share/lorax/templates.d/80-rhel/config_files/common/pam.sshd
/usr/share/lorax/templates.d/80-rhel/config_files/common/profile
/usr/share/lorax/templates.d/80-rhel/config_files/common/resolv.conf
/usr/share/lorax/templates.d/80-rhel/config_files/common/rsyslog.conf
/usr/share/lorax/templates.d/80-rhel/config_files/common/selinux.config
/usr/share/lorax/templates.d/80-rhel/config_files/common/spice-vdagentd
/usr/share/lorax/templates.d/80-rhel/config_files/common/sshd_config.anaconda
/usr/share/lorax/templates.d/80-rhel/config_files/common/sysctl.conf
/usr/share/lorax/templates.d/80-rhel/config_files/common/vconsole.conf
/usr/share/lorax/templates.d/80-rhel/config_files/ppc
/usr/share/lorax/templates.d/80-rhel/config_files/ppc/bootinfo.txt
/usr/share/lorax/templates.d/80-rhel/config_files/ppc/grub.cfg.in
/usr/share/lorax/templates.d/80-rhel/config_files/ppc/mapping
/usr/share/lorax/templates.d/80-rhel/config_files/ppc/ofboot.b
/usr/share/lorax/templates.d/80-rhel/config_files/ppc/yaboot.conf.3264
/usr/share/lorax/templates.d/80-rhel/config_files/ppc/yaboot.conf.in
/usr/share/lorax/templates.d/80-rhel/config_files/s390
/usr/share/lorax/templates.d/80-rhel/config_files/s390/cdboot.prm
/usr/share/lorax/templates.d/80-rhel/config_files/s390/generic.ins
/usr/share/lorax/templates.d/80-rhel/config_files/s390/generic.prm
/usr/share/lorax/templates.d/80-rhel/config_files/s390/genericdvd.prm
/usr/share/lorax/templates.d/80-rhel/config_files/s390/redhat.exec
/usr/share/lorax/templates.d/80-rhel/config_files/sparc
/usr/share/lorax/templates.d/80-rhel/config_files/sparc/boot.msg
/usr/share/lorax/templates.d/80-rhel/config_files/sparc/silo.conf
/usr/share/lorax/templates.d/80-rhel/config_files/x86
/usr/share/lorax/templates.d/80-rhel/config_files/x86/boot.msg
/usr/share/lorax/templates.d/80-rhel/config_files/x86/grub.conf
/usr/share/lorax/templates.d/80-rhel/config_files/x86/grub2-efi.cfg
/usr/share/lorax/templates.d/80-rhel/config_files/x86/isolinux.cfg
/usr/share/lorax/templates.d/80-rhel/efi.tmpl
/usr/share/lorax/templates.d/80-rhel/live
/usr/share/lorax/templates.d/80-rhel/live/aarch64.tmpl
/usr/share/lorax/templates.d/80-rhel/live/arm.tmpl
/usr/share/lorax/templates.d/80-rhel/live/config_files
/usr/share/lorax/templates.d/80-rhel/live/config_files/aarch64
/usr/share/lorax/templates.d/80-rhel/live/config_files/aarch64/grub2-efi.cfg
/usr/share/lorax/templates.d/80-rhel/live/config_files/ppc
/usr/share/lorax/templates.d/80-rhel/live/config_files/ppc/bootinfo.txt
/usr/share/lorax/templates.d/80-rhel/live/config_files/ppc/grub.cfg.in
/usr/share/lorax/templates.d/80-rhel/live/config_files/ppc/mapping
/usr/share/lorax/templates.d/80-rhel/live/config_files/ppc/ofboot.b
/usr/share/lorax/templates.d/80-rhel/live/config_files/ppc/yaboot.conf.3264
/usr/share/lorax/templates.d/80-rhel/live/config_files/ppc/yaboot.conf.in
/usr/share/lorax/templates.d/80-rhel/live/config_files/s390
/usr/share/lorax/templates.d/80-rhel/live/config_files/s390/cdboot.prm
/usr/share/lorax/templates.d/80-rhel/live/config_files/s390/generic.ins
/usr/share/lorax/templates.d/80-rhel/live/config_files/s390/generic.prm
/usr/share/lorax/templates.d/80-rhel/live/config_files/s390/genericdvd.prm
/usr/share/lorax/templates.d/80-rhel/live/config_files/s390/redhat.exec
/usr/share/lorax/templates.d/80-rhel/live/config_files/x86
/usr/share/lorax/templates.d/80-rhel/live/config_files/x86/boot.msg
/usr/share/lorax/templates.d/80-rhel/live/config_files/x86/grub.conf
/usr/share/lorax/templates.d/80-rhel/live/config_files/x86/grub2-efi.cfg
/usr/share/lorax/templates.d/80-rhel/live/config_files/x86/isolinux.cfg
/usr/share/lorax/templates.d/80-rhel/live/efi.tmpl
/usr/share/lorax/templates.d/80-rhel/live/live-install.tmpl
/usr/share/lorax/templates.d/80-rhel/live/ppc.tmpl
/usr/share/lorax/templates.d/80-rhel/live/ppc64le.tmpl
/usr/share/lorax/templates.d/80-rhel/live/s390.tmpl
/usr/share/lorax/templates.d/80-rhel/live/x86.tmpl
/usr/share/lorax/templates.d/80-rhel/ppc.tmpl
/usr/share/lorax/templates.d/80-rhel/ppc64le.tmpl
/usr/share/lorax/templates.d/80-rhel/pxe-live
/usr/share/lorax/templates.d/80-rhel/pxe-live/pxe-config.tmpl
/usr/share/lorax/templates.d/80-rhel/runtime-cleanup.tmpl
/usr/share/lorax/templates.d/80-rhel/runtime-install.tmpl
/usr/share/lorax/templates.d/80-rhel/runtime-postinstall.tmpl
/usr/share/lorax/templates.d/80-rhel/s390.tmpl
/usr/share/lorax/templates.d/80-rhel/x86.tmpl

References

Summary

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