How To Install xorriso on Ubuntu 18.04

In this tutorial we learn how to install xorriso on Ubuntu 18.04. xorriso is command line ISO-9660 and Rock Ridge manipulation tool

Introduction

In this tutorial we learn how to install xorriso on Ubuntu 18.04.

What is xorriso

xorriso is:

xorriso is a command line and dialog application, which creates, loads, manipulates, and writes ISO-9660 file system images with Rock Ridge extensions.

It maps file objects from POSIX compliant file systems into Rock Ridge enhanced ISO-9660 file systems and features session-wise manipulation of such file systems. It can load the management information of existing ISO images and write the resulting session to optical medium or as file system objects.

Supported optical media types:

  • CD-R, CD-RW
  • DVD-R, DVD-R DL, DVD-RW, DVD+R, DVD+R DL, DVD+RW, DVD-RAM
  • BD-R, BD-RE

Some interesting features:

  • Emulation of the mkisofs and cdrecord programs.
  • Data backup and restore capabilities - compression, ACLs, and filters.
  • Isohybrid MBR with partition offset - features booting ISOLINUX from USB sticks, or from other devices that appear to PC-BIOS as hard disks. The images carry a conventional partition table for a USB stick; the first partition reports the size of the ISO image, but starts at a non-zero address. It is nevertheless still mountable.
  • Jigdo Template Export - jigdo representation of the resulting ISO-9660 image, generated on the fly.

Test suite: xorriso source code comes with a release engineering test-suite called `releng’, which aims to cover most of the functionality of the xorriso and the underlying libraries of libburn, libisofs, and libisoburn.

There are three methods to install xorriso on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install xorriso Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install xorriso using apt-get by running the following command:

sudo apt-get -y install xorriso

Install xorriso Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install xorriso using apt by running the following command:

sudo apt -y install xorriso

Install xorriso Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install xorriso using aptitude by running the following command:

sudo aptitude -y install xorriso

How To Uninstall xorriso on Ubuntu 18.04

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

sudo apt-get remove xorriso

Uninstall xorriso And Its Dependencies

To uninstall xorriso and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove xorriso

Remove xorriso Configurations and Data

To remove xorriso configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge xorriso

Remove xorriso configuration, data, and all of its dependencies

We can use the following command to remove xorriso configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge xorriso

References

Summary

In this tutorial we learn how to install xorriso package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.