For this tutorial we’ll use the genisoimage utility, developed as part of the cdrkit project. genisoimage is a command-line tool for creating ISO 9660 filesystem images, which can be burnt after to a CD or DVD using some other burning tool. To install it open a terminal and type the following as root:
Ubuntu and Debain
$ sudo apt-get install genisoimage (for Centos and redhat )
For Redhat and Centos
$ yum -y install genisoimage