I am using anaconda kickstart installer to provision fedora 28 baremetals but I found that by default i does not install all updates.

I do want to avoid having to run a an yum -q -y update during the %post phase an find a way in which the initial installation would be using the latest updates, saving a lot of time by avoiding to download and install things twice.

How can I do this?

If the solution would work for the entire RedHat family: Fedora/CentOS/RHEL the better.

up vote 2 down vote accepted

To install all updates at installation time, you need to have the updates repo defined in the kickstart using the repo option.

For example:

url --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-29&arch=x86_64
repo --name=updates --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f29&arch=x86_64

This will install Fedora 29 from the network, and also install any available updates, from the Internet using the nearest available mirror.

You can change 29 to 28 each place it appears, to install the older Fedora 28 instead. But be aware of its short lifecycle.

If you have a private mirror, you can use that instead of using a mirrorlist.

repo --name=updates --baseurl=http://myprivaterepo.example/fedora/linux/updates/29/Everything/x86_64
  • What I do not underatand is why I need to mention the baseurl because once installed yum/dnf can find updates with no problems. – sorin Dec 7 at 12:33
  • 1
    @sorin Because at the point you are installing the system from a kickstart, the system is not yet installed. You have to tell anaconda where to get the files from somehow! – Michael Hampton Dec 7 at 14:41

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.