I want to create Fedora 14 live CD with additional packages. How to do it?

  • 1
    I am currently building an FC13 based CD with a kickstart CD for auto installing - and trying to find out how to pull packages in. It seems merely having the RPM in the Packages folder on the media is not enough. Once I am there, I'll give you what I get. Jun 7, 2011 at 15:42
  • @ Danny Staple, Thanks, waiting for your answer
    – Kumar
    Jun 8, 2011 at 9:47

4 Answers 4


I note my application is slightly difference in that I am creating installation media and not a livecd, but some of this is likely to apply.

You will need to use the tool createrepo to alter the repodata on the CD. To have them preinstalled you will probably need a kickstart file - ks.cfg, and you will need the isolinux.cfg file to pass ks=...ks.cfg location to the kernel on boot (in an append line).


Make sure you have a VM to try out your ISO's on, before turning it loose on real machines - it'll take a few attempts to get right. With the kickstart file you can set usernames, passwords, packages as well as have post installation scripts in bash or python.


As others have suggested, you need to build your custom Fedora ISO using kickstart preloaded with your rpm packages of choice. Adding packages is as simple as appending them to your kickstart file. After that open the stock Fedora ISO using ISO master, replace the kickstart file and save the new ISO as a different file. The final step is to install the new ISO onto your USB the way you normally do.


First get the default all installed and your USB device booting. Then boot it up, and modify it however you like. It should retain any changes.

To author a new CD iso, you would have to look into building the entire distro yourself which is considerably more complicated. Since your subject line and tags include usb, I assume that's what your actually after.

  • The changes only retain, if you add persistant storage when creating your live usb stick with liveusb-creator.
    – erik
    Feb 6, 2015 at 11:13
  • "Then boot it up, and modify it however you like..." - You should probably add some more detail. I am experiencing a failure due to lack of space on the root filesystem after running sudo yum install <package>. The thumbdrive with the ISO has over 12 GB free so I doubt I am out of space.
    – user56041
    Jun 6, 2018 at 20:14

Here's the easy way. Use editliveos to modify an existing ISO:

# sudo dnf install livecd-tools # (provides editliveos)


echo "#!/usr/bin/env bash" > "${TMP_SCRIPT}"
echo "dnf install -y vim git firefox thunderbird" >> "${TMP_SCRIPT}"
sudo chmod +x "${TMP_SCRIPT}"

sudo editliveos --noshell --script "${TMP_SCRIPT}" --output "${ISO_DIR}" "${ISO_FILE}"

You'll find the modified iso as Fedora-Workstation-Live-x86_64-34-1.2.iso.edited-*.iso in your ISO_DIR

The code will create a bash script and then editliveos extracts the squashfs image and unsquashes it to mount a copy of the rootfs, inside of which it will then use chroot to run the bash script (which installs your packages). Finally it will do the same thing in reverse (unmount the rootfs, squash it to create a squashfs and create a new ISO with it based on the original one).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .