Re: [CentOS] how to 'yum update' in a %post

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Tom Brown wrote:

Hi

After a kickstart install how do you get a yum update to run as the final stage of the install?

a 'yum update' in the %post does not seem to do anything at all - no errors just nothing?

Try this in your kickstart file:

%post --interpreter /bin/bash
yes | yum update

Without the '--interpreter /bin/bash' the code will (I think) be interpreted as python. Also, when you run 'yum update' you are prompted to confirm that you want to go ahead and update the listed packages, and so you need to pipe 'yes' through it.

Hope this helps,

Joe

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux