How can I configure anaconda kickstart to assure its installs all updates from start?

sorin asked:

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.

My answer:

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=
repo --name=updates --mirrorlist=

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

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.