I am writing a RHEL kickstart script, and in my %post, I need to install a JRE.

Basically, the current setup involves me needing to manually go in after first boot and set the newly installed JRE as the default using the alternatives --config command. Is there a way for me to pass arguments to alternatives so I don't have to manually pick the correct JRE?

link|improve this question

feedback

1 Answer

up vote 3 down vote accepted

Does your version have --set?

--set name path
Set the program path as alternative for name. This is equivalent to --config but is non-interactive and thus scriptable.

link|improve this answer
That's the ticket, thank you sir. – snk Mar 17 '10 at 15:30
feedback

Your Answer

 
or
required, but never shown

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