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

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




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.

thanks for the response - with regard piping yes through to yum it seems you can just specify yum -y update and this will anser yes for you.

the interpreter bit is now causing the end of the kickstart to bomb out with the error of '/usr/local/bin/bash can not be run' as this is where bash is it seems. This is the %post bit of the kickstart

%post --nochroot --interpreter /usr/local/bin/bash
/usr/bin/yum -y update

any ideas??
_______________________________________________
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