My kickstart package selection for CentOS 7.2

I figured that kickstart was ignoring my “–nodefaults” request so I ended up peeking into “repodata/*-comps.xml.gz” and requesting to exclude “default” & “optional” packages individually (many will still show-up because of dependencies).

Here is my hack for having a more minimal cent-os.

%packages --excludedocs --nobase
@core --nodefaults
chrony
lvm2
-aic94xx-firmware
-alsa-firmware
-bfa-firmware
-dracut-config-rescue
-ivtv-firmware
-iwl100-firmware
-iwl1000-firmware
-iwl105-firmware
-iwl135-firmware
-iwl2000-firmware
-iwl2030-firmware
-iwl3160-firmware
-iwl3945-firmware
-iwl4965-firmware
-iwl5000-firmware
-iwl5150-firmware
-iwl6000-firmware
-iwl6000g2a-firmware
-iwl6000g2b-firmware
-iwl6050-firmware
-iwl7260-firmware
-iwl7265-firmware
-kernel-tools
-libertas-sd8686-firmware
-libertas-sd8787-firmware
-libertas-usb8388-firmware
-libsysfs
-linux-firmware
-microcode_ctl
-NetworkManager
-NetworkManager-team
-NetworkManager-tui
-postfix
-ql2100-firmware
-ql2200-firmware
-ql23xx-firmware
-rdma
-dracut-config-generic
-dracut-fips
-dracut-fips-aesni
-dracut-network
-openssh-keycat
-selinux-policy-mls
-tboot
-rubygem-abrt
-abrt-addon-ccpp
-abrt-addon-python
-abrt-cli
-abrt-console-notification
-bash-completion
-blktrace
-bridge-utils
-bzip2
#-chrony
-cryptsetup
-dmraid
-dosfstools
-ethtool
-fprintd-pam
-gnupg2
-hunspell
-hunspell-en
-kpatch
-ledmon
-libaio
-libreport-plugin-mailx
-libstoragemgmt
#-lvm2
-man-pages
-man-pages-overrides
-mdadm
-mlocate
-mtr
-nano
-ntpdate
-pinfo
-plymouth
-pm-utils
-rdate
-rfkill
-rng-tools
-rsync
-scl-utils
-setuptool
-smartmontools
-sos
-sssd-client
-strace
-sysstat
-systemtap-runtime
-tcpdump
-tcsh
-teamd
-time
-unzip
-usbutils
-vim-enhanced
-virt-what
-wget
-which
-words
-xfsdump
-xz
-yum-langpacks
-yum-plugin-security
-yum-utils
-zip
-acpid
-audispd-plugins
-augeas
-brltty
-ceph-common
-cryptsetup-reencrypt
-device-mapper-persistent-data
-dos2unix
-dumpet
-genisoimage
-gpm
-i2c-tools
-kabi-yum-plugins
-libatomic
-libcgroup
-libcgroup-tools
-libitm
-libstoragemgmt-netapp-plugin
-libstoragemgmt-nstor-plugin
-libstoragemgmt-smis-plugin
-libstoragemgmt-targetd-plugin
-libstoragemgmt-udev
-linuxptp
-logwatch
-mkbootdisk
-mtools
-ncurses-term
-ntp
-oddjob
-pax
-prelink
-PyPAM
-python-volume_key
-redhat-lsb-core
-redhat-upgrade-dracut
-redhat-upgrade-tool
-rsyslog-gnutls
-rsyslog-gssapi
-rsyslog-relp
-sgpio
-sox
-squashfs-tools
-star
-tmpwatch
-udftools
-uuidd
-volume_key
-wodim
-x86info
-yum-plugin-aliases
-yum-plugin-changelog
-yum-plugin-tmprepo
-yum-plugin-verify
-yum-plugin-versionlock
-zsh

%end

And here is what I get, 232 packages and slightly less than 750M installed.

[root@dell-cs24-n1 ~]# rpm -qa | wc -l
232
[root@dell-cs24-n1 ~]# df -k
Filesystem                 1K-blocks   Used Available Use% Mounted on
/dev/mapper/vg_all-lv_root 206292968 760604 195030220   1% /

I’m struggling to understand the meaning of MINIMAL.

In case you are curious, following 9 default/optional packages got included in this minimal build because of dependencies.

device-mapper-persistent-data
dracut-network
ethtool
gnupg2
libaio
linux-firmware
virt-what
which
xz

One thought on “My kickstart package selection for CentOS 7.2”

Leave a Reply

Your email address will not be published. Required fields are marked *