RHEL 5/6/7 Kickstart Options

Ess, Brandon Brandon.Ess at atk.com
Mon Nov 3 15:49:21 UTC 2014


Pushpendra,

Thanks for the response. After rereading the documentation I see how it says where to put the –optional parameter and it’s not at %packages.

-Brandon

From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of Mr. Pushpendra Chavan
Sent: Friday, October 31, 2014 3:47 PM
To: Discussion list about Kickstart
Subject: Re: RHEL 5/6/7 Kickstart Options

Hello Brandon,

You are actually doing it wrong. You should try the following way.

%packages
@group1
@group2 --nodefaults
@group3 --optional
package1
package2
-package3

The option --optional shall be used with the package group not with %packages section. The same is available in Red Hat Enterprise Linux 6[1] and 7[2] as well.
A link[3] from Fedora Documentation also explains about it.

[1] https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html-single/Installation_Guide/index.html#s1-kickstart2-packageselection​

​[2] https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Installation_Guide/sect-kickstart-syntax.html#sect-kickstart-packages​

​[3] https://fedorahosted.org/revisor/wiki/KickstartPackageSelection​

​Regards,​

​Pushp​
​​
​endra​


On Sat, Nov 1, 2014 at 2:18 AM, Ess, Brandon <Brandon.Ess at atk.com<mailto:Brandon.Ess at atk.com>> wrote:
Hello,

I’m working on Kickstart scripts targeted towards RHEL 5/6/7 and I would like to make them all as portable and reusable as possible. I understand some options and flags were added in newer releases of Anaconda but I cannot find documentation stating which options were added in which Anaconda version. A “works with RHEL {version}” would also help.

My current question is this, for package selection I would like to also install optional packages using the --optional parameter at  %packages --optional but for a RHEL6 installs Anaconda throws the error “no such option: --optional”

Is the --optional parameter not available for RHEL6 installs?

######################
# Package Selection  #
######################

#Core Packages
%packages --optional
@core
@base
@Compatibility libraries
@Desktop
@Development tools
@General Purpose Desktop
@Server Platform Development
@X Window System
ntp

Thanks,

Brandon


_______________________________________________
Kickstart-list mailing list
Kickstart-list at redhat.com<mailto:Kickstart-list at redhat.com>
https://www.redhat.com/mailman/listinfo/kickstart-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20141103/40f91dea/attachment.htm>


More information about the Kickstart-list mailing list