A collection of guides and tutorials for various topics that I have written.
In this guide I will show you how to patch an ISO file. Since ISO files are not writable, we will have to mount the ISO, modify the contents, and then create a new ISO file using the modified contents.
genisoimage packagegenisoimageTo install genisoimage on debian-based systems, run the following command:
sudo apt-get install genisoimage
To install genisoimage on arch-based systems, run the following command:
sudo pacman -S cdrtools
To install genisoimage on fedora-based systems, run the following command:
sudo dnf install genisoimage
mkdir /mnt/iso
sudo mount -o loop file.iso /mnt/iso
Modify the contents of the mounted ISO file as needed.
Create a new ISO file with the modified contents:
genisoimage -o newfile.iso -r -J /mnt/iso
sudo umount /mnt/iso
Now you have successfully patched an ISO file.