How To Install osbuild on CentOS 8

osbuild is A build system for OS images

Introduction

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

What is osbuild

A build system for OS images

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

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

sudo dnf -y install osbuild

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

sudo yum -y install osbuild

How To Uninstall osbuild on CentOS 8

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

sudo dnf remove osbuild

osbuild Package Contents on CentOS 8

/usr/bin/osbuild
/usr/lib/osbuild
/usr/lib/osbuild/assemblers
/usr/lib/osbuild/assemblers/org.osbuild.error
/usr/lib/osbuild/assemblers/org.osbuild.noop
/usr/lib/osbuild/assemblers/org.osbuild.oci-archive
/usr/lib/osbuild/assemblers/org.osbuild.qemu
/usr/lib/osbuild/assemblers/org.osbuild.rawfs
/usr/lib/osbuild/assemblers/org.osbuild.tar
/usr/lib/osbuild/inputs
/usr/lib/osbuild/inputs/org.osbuild.files
/usr/lib/osbuild/inputs/org.osbuild.noop
/usr/lib/osbuild/inputs/org.osbuild.ostree
/usr/lib/osbuild/inputs/org.osbuild.tree
/usr/lib/osbuild/osbuild
/usr/lib/osbuild/runners
/usr/lib/osbuild/runners/org.osbuild.arch
/usr/lib/osbuild/runners/org.osbuild.centos8
/usr/lib/osbuild/runners/org.osbuild.fedora30
/usr/lib/osbuild/runners/org.osbuild.fedora31
/usr/lib/osbuild/runners/org.osbuild.fedora32
/usr/lib/osbuild/runners/org.osbuild.fedora33
/usr/lib/osbuild/runners/org.osbuild.fedora34
/usr/lib/osbuild/runners/org.osbuild.linux
/usr/lib/osbuild/runners/org.osbuild.rhel81
/usr/lib/osbuild/runners/org.osbuild.rhel82
/usr/lib/osbuild/runners/org.osbuild.rhel83
/usr/lib/osbuild/runners/org.osbuild.rhel84
/usr/lib/osbuild/runners/org.osbuild.rhel85
/usr/lib/osbuild/runners/org.osbuild.rhel90
/usr/lib/osbuild/runners/org.osbuild.ubuntu1804
/usr/lib/osbuild/runners/org.osbuild.ubuntu2004
/usr/lib/osbuild/schemas
/usr/lib/osbuild/sources
/usr/lib/osbuild/sources/org.osbuild.curl
/usr/lib/osbuild/stages
/usr/lib/osbuild/stages/org.osbuild.anaconda
/usr/lib/osbuild/stages/org.osbuild.bootiso.mono
/usr/lib/osbuild/stages/org.osbuild.buildstamp
/usr/lib/osbuild/stages/org.osbuild.chrony
/usr/lib/osbuild/stages/org.osbuild.debug-shell
/usr/lib/osbuild/stages/org.osbuild.discinfo
/usr/lib/osbuild/stages/org.osbuild.dracut
/usr/lib/osbuild/stages/org.osbuild.error
/usr/lib/osbuild/stages/org.osbuild.firewall
/usr/lib/osbuild/stages/org.osbuild.first-boot
/usr/lib/osbuild/stages/org.osbuild.fix-bls
/usr/lib/osbuild/stages/org.osbuild.fstab
/usr/lib/osbuild/stages/org.osbuild.groups
/usr/lib/osbuild/stages/org.osbuild.grub2
/usr/lib/osbuild/stages/org.osbuild.hostname
/usr/lib/osbuild/stages/org.osbuild.ignition
/usr/lib/osbuild/stages/org.osbuild.implantisomd5
/usr/lib/osbuild/stages/org.osbuild.kernel-cmdline
/usr/lib/osbuild/stages/org.osbuild.keymap
/usr/lib/osbuild/stages/org.osbuild.kickstart
/usr/lib/osbuild/stages/org.osbuild.locale
/usr/lib/osbuild/stages/org.osbuild.lorax-script
/usr/lib/osbuild/stages/org.osbuild.noop
/usr/lib/osbuild/stages/org.osbuild.oci-archive
/usr/lib/osbuild/stages/org.osbuild.ostree.commit
/usr/lib/osbuild/stages/org.osbuild.ostree.init
/usr/lib/osbuild/stages/org.osbuild.ostree.preptree
/usr/lib/osbuild/stages/org.osbuild.ostree.pull
/usr/lib/osbuild/stages/org.osbuild.resolv-conf
/usr/lib/osbuild/stages/org.osbuild.rhsm
/usr/lib/osbuild/stages/org.osbuild.rpm
/usr/lib/osbuild/stages/org.osbuild.selinux
/usr/lib/osbuild/stages/org.osbuild.sysconfig
/usr/lib/osbuild/stages/org.osbuild.systemd
/usr/lib/osbuild/stages/org.osbuild.tar
/usr/lib/osbuild/stages/org.osbuild.test
/usr/lib/osbuild/stages/org.osbuild.timezone
/usr/lib/osbuild/stages/org.osbuild.users
/usr/lib/osbuild/stages/org.osbuild.xorrisofs
/usr/lib/osbuild/stages/org.osbuild.zipl
/usr/share/licenses/osbuild
/usr/share/licenses/osbuild/LICENSE
/usr/share/man/man1/osbuild.1.gz
/usr/share/man/man5/osbuild-manifest.5.gz
/usr/share/osbuild/schemas
/usr/share/osbuild/schemas/osbuild1.json
/usr/share/osbuild/schemas/osbuild2.json

References

Summary

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