3.2.1.2 Packages Section

The %packages section defines the packages to be installed on the system, for example:

%packages
@base
@core
@desktop-debugging
@dial-up
@fonts
@gnome-desktop
@guest-agents
@guest-desktop-agents
@input-methods
@internet-browser
@multimedia
@print-client
@print-server
@x11
mtools
pax
python-dmidecode
oddjob
wodim
sgpio
genisoimage
device-mapper-persistent-data
abrt-gui
samba-winbind
certmonger
openldap-clients
pam_krb5
krb5-workstation
ldapjdk
slapi-nis
libXmu
perl-DBD-SQLite
perl-Mozilla-LDAP
%end

Package group names start with a @ character. You can use the yum grouplist command on an existing Oracle Linux server to display both the installed package groups and the package groups that are available to install.

Individual packages to be installed are named without the @ prefix. The asterisk (*) wildcard character can be used to specify multiple packages. If you specify a - character as a prefix to a package, the package is not installed.

The %packages keyword can take options, the following are the most useful:

--ignoremissing

Installs the available packages without prompting about missing packages. By default, kickstart interrupts the installation and asks you whether you want to continue the installation.

--multilib

Sets the multilib policy in yum configuration to all so that 32-bit packages can be installed on the system.

You can also use a package list that is available as a local file in kickstart's ramdisk file system or that is accessible on an HTTP server, for example:

%packages --ignoremissing
%include /tmp/package-list
%end