CentOS 7のminimalインストールからさらにRPMを削る

CentOS 7 minimalインストールから、kvmホストとして使用できる最小限を目指します。

とはいっても、yumで管理できる程度のおきらくごくらくなところまでです。


# 初期インストールされているもの

初期状態です。

```
acl-2.2.51-12.el7.x86_64
aic94xx-firmware-30-6.el7.noarch
alsa-firmware-1.0.28-2.el7.noarch
alsa-lib-1.0.28-2.el7.x86_64
alsa-tools-firmware-1.0.28-2.el7.x86_64
audit-2.4.1-5.el7.x86_64
audit-libs-2.4.1-5.el7.x86_64
authconfig-6.2.8-10.el7.x86_64
avahi-autoipd-0.6.31-15.el7.x86_64
avahi-libs-0.6.31-15.el7.x86_64
basesystem-10.0-7.el7.centos.noarch
bash-4.2.46-19.el7.x86_64
bind-libs-lite-9.9.4-29.el7.x86_64
bind-license-9.9.4-29.el7.noarch
binutils-2.23.52.0.1-55.el7.x86_64
biosdevname-0.6.2-1.el7.x86_64
btrfs-progs-3.19.1-1.el7.x86_64
bzip2-libs-1.0.6-13.el7.x86_64
ca-certificates-2015.2.4-71.el7.noarch
centos-logos-70.0.6-3.el7.centos.noarch
centos-release-7-2.1511.el7.centos.2.10.x86_64
chkconfig-1.3.61-5.el7.x86_64
coreutils-8.22-15.el7.x86_64
cpio-2.11-24.el7.x86_64
cracklib-2.9.0-11.el7.x86_64
cracklib-dicts-2.9.0-11.el7.x86_64
cronie-1.4.11-14.el7.x86_64
cronie-anacron-1.4.11-14.el7.x86_64
crontabs-1.11-6.20121102git.el7.noarch
cryptsetup-libs-1.6.7-1.el7.x86_64
curl-7.29.0-25.el7.centos.x86_64
cyrus-sasl-lib-2.1.26-19.2.el7.x86_64
dbus-1.6.12-13.el7.x86_64
dbus-glib-0.100-7.el7.x86_64
dbus-libs-1.6.12-13.el7.x86_64
dbus-python-1.1.1-9.el7.x86_64
device-mapper-1.02.107-5.el7.x86_64
device-mapper-event-1.02.107-5.el7.x86_64
device-mapper-event-libs-1.02.107-5.el7.x86_64
device-mapper-libs-1.02.107-5.el7.x86_64
device-mapper-persistent-data-0.5.5-1.el7.x86_64
dhclient-4.2.5-42.el7.centos.x86_64
dhcp-common-4.2.5-42.el7.centos.x86_64
dhcp-libs-4.2.5-42.el7.centos.x86_64
diffutils-3.3-4.el7.x86_64
dmidecode-2.12-9.el7.x86_64
dnsmasq-2.66-14.el7_1.x86_64
dracut-033-359.el7.x86_64
dracut-config-rescue-033-359.el7.x86_64
dracut-network-033-359.el7.x86_64
e2fsprogs-1.42.9-7.el7.x86_64
e2fsprogs-libs-1.42.9-7.el7.x86_64
ebtables-2.0.10-13.el7.x86_64
elfutils-libelf-0.163-3.el7.x86_64
elfutils-libs-0.163-3.el7.x86_64
ethtool-3.15-2.el7.x86_64
expat-2.1.0-8.el7.x86_64
file-5.11-31.el7.x86_64
file-libs-5.11-31.el7.x86_64
filesystem-3.2-20.el7.x86_64
findutils-4.5.11-5.el7.x86_64
fipscheck-1.4.1-5.el7.x86_64
fipscheck-lib-1.4.1-5.el7.x86_64
firewalld-0.3.9-14.el7.noarch
freetype-2.4.11-11.el7.x86_64
fxload-2002_04_11-16.el7.x86_64
gawk-4.0.2-4.el7.x86_64
gdbm-1.10-8.el7.x86_64
gettext-0.18.2.1-4.el7.x86_64
gettext-libs-0.18.2.1-4.el7.x86_64
glib2-2.42.2-5.el7.x86_64
glibc-2.17-105.el7.x86_64
glibc-common-2.17-105.el7.x86_64
glib-networking-2.42.0-1.el7.x86_64
gmp-6.0.0-11.el7.x86_64
gnupg2-2.0.22-3.el7.x86_64
gnutls-3.3.8-12.el7_1.1.x86_64
gobject-introspection-1.42.0-1.el7.x86_64
gpgme-1.3.2-5.el7.x86_64
grep-2.20-2.el7.x86_64
groff-base-1.22.2-8.el7.x86_64
grub2-2.02-0.29.el7.centos.x86_64
grub2-tools-2.02-0.29.el7.centos.x86_64
grubby-8.28-17.el7.x86_64
gsettings-desktop-schemas-3.14.2-1.el7.x86_64
gzip-1.5-8.el7.x86_64
hardlink-1.0-19.el7.x86_64
hostname-3.13-3.el7.x86_64
hwdata-0.252-8.1.el7.x86_64
info-5.1-4.el7.x86_64
initscripts-9.49.30-1.el7.x86_64
iproute-3.10.0-54.el7.x86_64
iprutils-2.4.8-1.el7.x86_64
iptables-1.4.21-16.el7.x86_64
iputils-20121221-7.el7.x86_64
irqbalance-1.0.7-5.el7.x86_64
ivtv-firmware-20080701-26.el7.noarch
iwl1000-firmware-39.31.5.1-43.el7.noarch
iwl100-firmware-39.31.5.1-43.el7.noarch
iwl105-firmware-18.168.6.1-43.el7.noarch
iwl135-firmware-18.168.6.1-43.el7.noarch
iwl2000-firmware-18.168.6.1-43.el7.noarch
iwl2030-firmware-18.168.6.1-43.el7.noarch
iwl3160-firmware-22.0.7.0-43.el7.noarch
iwl3945-firmware-15.32.2.9-43.el7.noarch
iwl4965-firmware-228.61.2.24-43.el7.noarch
iwl5000-firmware-8.83.5.1_1-43.el7.noarch
iwl5150-firmware-8.24.2.2-43.el7.noarch
iwl6000-firmware-9.221.4.1-43.el7.noarch
iwl6000g2a-firmware-17.168.5.3-43.el7.noarch
iwl6000g2b-firmware-17.168.5.2-43.el7.noarch
iwl6050-firmware-41.28.5.1-43.el7.noarch
iwl7260-firmware-22.0.7.0-43.el7.noarch
iwl7265-firmware-22.0.7.0-43.el7.noarch
jansson-2.4-6.el7.x86_64
json-c-0.11-4.el7_0.x86_64
kbd-1.15.5-11.el7.x86_64
kbd-legacy-1.15.5-11.el7.noarch
kbd-misc-1.15.5-11.el7.noarch
kernel-3.10.0-327.el7.x86_64
kernel-tools-3.10.0-327.el7.x86_64
kernel-tools-libs-3.10.0-327.el7.x86_64
kexec-tools-2.0.7-38.el7.x86_64
keyutils-libs-1.5.8-3.el7.x86_64
kmod-20-5.el7.x86_64
kmod-libs-20-5.el7.x86_64
kpartx-0.4.9-85.el7.x86_64
krb5-libs-1.13.2-10.el7.x86_64
less-458-9.el7.x86_64
libacl-2.2.51-12.el7.x86_64
libaio-0.3.109-13.el7.x86_64
libassuan-2.1.0-3.el7.x86_64
libattr-2.4.46-12.el7.x86_64
libblkid-2.23.2-26.el7.x86_64
libcap-2.22-8.el7.x86_64
libcap-ng-0.7.5-4.el7.x86_64
libcom_err-1.42.9-7.el7.x86_64
libcroco-0.6.8-5.el7.x86_64
libcurl-7.29.0-25.el7.centos.x86_64
libdaemon-0.14-7.el7.x86_64
libdb-5.3.21-19.el7.x86_64
libdb-utils-5.3.21-19.el7.x86_64
libdrm-2.4.60-3.el7.x86_64
libedit-3.0-12.20121213cvs.el7.x86_64
libestr-0.1.9-2.el7.x86_64
libffi-3.0.13-16.el7.x86_64
libgcc-4.8.5-4.el7.x86_64
libgcrypt-1.5.3-12.el7_1.1.x86_64
libgomp-4.8.5-4.el7.x86_64
libgpg-error-1.12-3.el7.x86_64
libgudev1-219-19.el7.x86_64
libidn-1.28-4.el7.x86_64
libmnl-1.0.3-7.el7.x86_64
libmodman-2.0.1-8.el7.x86_64
libmount-2.23.2-26.el7.x86_64
libndp-1.2-4.el7.x86_64
libnetfilter_conntrack-1.0.4-2.el7.x86_64
libnfnetlink-1.0.1-4.el7.x86_64
libnl3-3.2.21-10.el7.x86_64
libnl3-cli-3.2.21-10.el7.x86_64
libpcap-1.5.3-8.el7.x86_64
libpciaccess-0.13.4-2.el7.x86_64
libpipeline-1.2.3-3.el7.x86_64
libproxy-0.4.11-8.el7.x86_64
libpwquality-1.2.3-4.el7.x86_64
libselinux-2.2.2-6.el7.x86_64
libselinux-python-2.2.2-6.el7.x86_64
libselinux-utils-2.2.2-6.el7.x86_64
libsemanage-2.1.10-18.el7.x86_64
libsepol-2.1.9-3.el7.x86_64
libsoup-2.48.1-3.el7.x86_64
libss-1.42.9-7.el7.x86_64
libssh2-1.4.3-10.el7.x86_64
libstdc++-4.8.5-4.el7.x86_64
libsysfs-2.1.0-16.el7.x86_64
libtasn1-3.8-2.el7.x86_64
libteam-1.17-5.el7.x86_64
libunistring-0.9.3-9.el7.x86_64
libuser-0.60-7.el7_1.x86_64
libutempter-1.1.6-4.el7.x86_64
libuuid-2.23.2-26.el7.x86_64
libverto-0.2.5-4.el7.x86_64
libxml2-2.9.1-5.el7_1.2.x86_64
linux-firmware-20150904-43.git6ebf5d5.el7.noarch
logrotate-3.8.6-6.el7.x86_64
lsscsi-0.27-3.el7.x86_64
lua-5.1.4-14.el7.x86_64
lvm2-2.02.130-5.el7.x86_64
lvm2-libs-2.02.130-5.el7.x86_64
lzo-2.06-8.el7.x86_64
make-3.82-21.el7.x86_64
man-db-2.6.3-9.el7.x86_64
mariadb-libs-5.5.44-2.el7.centos.x86_64
microcode_ctl-2.1-12.el7.x86_64
mozjs17-17.0.0-12.el7.x86_64
ncurses-5.9-13.20130511.el7.x86_64
ncurses-base-5.9-13.20130511.el7.noarch
ncurses-libs-5.9-13.20130511.el7.x86_64
nettle-2.7.1-4.el7.x86_64
NetworkManager-1.0.6-27.el7.x86_64
NetworkManager-libnm-1.0.6-27.el7.x86_64
NetworkManager-team-1.0.6-27.el7.x86_64
NetworkManager-tui-1.0.6-27.el7.x86_64
newt-0.52.15-4.el7.x86_64
newt-python-0.52.15-4.el7.x86_64
nspr-4.10.8-2.el7_1.x86_64
nss-3.19.1-18.el7.x86_64
nss-softokn-3.16.2.3-13.el7_1.x86_64
nss-softokn-freebl-3.16.2.3-13.el7_1.x86_64
nss-sysinit-3.19.1-18.el7.x86_64
nss-tools-3.19.1-18.el7.x86_64
nss-util-3.19.1-4.el7_1.x86_64
numactl-libs-2.0.9-5.el7_1.x86_64
openldap-2.4.40-8.el7.x86_64
openssh-6.6.1p1-22.el7.x86_64
openssh-clients-6.6.1p1-22.el7.x86_64
openssh-server-6.6.1p1-22.el7.x86_64
openssl-1.0.1e-42.el7.9.x86_64
openssl-libs-1.0.1e-42.el7.9.x86_64
os-prober-1.58-5.el7.x86_64
p11-kit-0.20.7-3.el7.x86_64
p11-kit-trust-0.20.7-3.el7.x86_64
pam-1.1.8-12.el7_1.1.x86_64
parted-3.1-23.el7.x86_64
passwd-0.79-4.el7.x86_64
pciutils-libs-3.2.1-4.el7.x86_64
pcre-8.32-15.el7.x86_64
pinentry-0.8.1-14.el7.x86_64
pkgconfig-0.27.1-4.el7.x86_64
plymouth-0.8.9-0.24.20140113.el7.centos.x86_64
plymouth-core-libs-0.8.9-0.24.20140113.el7.centos.x86_64
plymouth-scripts-0.8.9-0.24.20140113.el7.centos.x86_64
policycoreutils-2.2.5-20.el7.x86_64
polkit-0.112-5.el7.x86_64
polkit-pkla-compat-0.1-4.el7.x86_64
popt-1.13-16.el7.x86_64
postfix-2.10.1-6.el7.x86_64
ppp-2.4.5-33.el7.x86_64
procps-ng-3.3.10-3.el7.x86_64
pth-2.0.7-23.el7.x86_64
pygobject3-base-3.14.0-3.el7.x86_64
pygpgme-0.3-9.el7.x86_64
pyliblzma-0.5.3-11.el7.x86_64
python-2.7.5-34.el7.x86_64
python-configobj-4.7.2-7.el7.noarch
python-decorator-3.4.0-3.el7.noarch
python-iniparse-0.4-9.el7.noarch
python-libs-2.7.5-34.el7.x86_64
python-perf-3.10.0-327.el7.x86_64
python-pycurl-7.19.0-17.el7.x86_64
python-pyudev-0.15-7.el7.noarch
python-slip-0.4.0-2.el7.noarch
python-slip-dbus-0.4.0-2.el7.noarch
python-urlgrabber-3.10-7.el7.noarch
pyxattr-0.5.1-5.el7.x86_64
qrencode-libs-3.4.1-3.el7.x86_64
rdma-7.2_4.1_rc6-1.el7.noarch
readline-6.2-9.el7.x86_64
rootfiles-8.1-11.el7.noarch
rpm-4.11.3-17.el7.x86_64
rpm-build-libs-4.11.3-17.el7.x86_64
rpm-libs-4.11.3-17.el7.x86_64
rpm-python-4.11.3-17.el7.x86_64
rsyslog-7.4.7-12.el7.x86_64
sed-4.2.2-5.el7.x86_64
selinux-policy-3.13.1-60.el7.noarch
selinux-policy-targeted-3.13.1-60.el7.noarch
setup-2.8.71-6.el7.noarch
shadow-utils-4.1.5.1-18.el7.x86_64
shared-mime-info-1.1-9.el7.x86_64
slang-2.2.4-11.el7.x86_64
snappy-1.1.0-3.el7.x86_64
sqlite-3.7.17-8.el7.x86_64
sudo-1.8.6p7-16.el7.x86_64
systemd-219-19.el7.x86_64
systemd-libs-219-19.el7.x86_64
systemd-sysv-219-19.el7.x86_64
sysvinit-tools-2.88-14.dsf.el7.x86_64
tar-1.26-29.el7.x86_64
tcp_wrappers-libs-7.6-77.el7.x86_64
teamd-1.17-5.el7.x86_64
trousers-0.3.13-1.el7.x86_64
tuned-2.5.1-4.el7.noarch
tzdata-2015g-1.el7.noarch
ustr-1.0.4-16.el7.x86_64
util-linux-2.23.2-26.el7.x86_64
vim-minimal-7.4.160-1.el7.x86_64
virt-what-1.13-6.el7.x86_64
which-2.20-7.el7.x86_64
wpa_supplicant-2.0-17.el7_1.x86_64
xfsprogs-3.2.2-2.el7.x86_64
xz-5.1.2-12alpha.el7.x86_64
xz-libs-5.1.2-12alpha.el7.x86_64
yum-3.4.3-132.el7.centos.0.1.noarch
yum-metadata-parser-1.1.4-10.el7.x86_64
yum-plugin-fastestmirror-1.1.31-34.el7.noarch
zlib-1.2.7-15.el7.x86_64
```

# 削ったもの

## 削って大丈夫そうなもの

- mariadb-libs
- postfix
- which
- tar
- virt-what
- tuned
- teamd
- NetworkManager-team
- parted
- openssh-clients
- firewalld
- less
- man-db
- iwl100-firmware.noarch 0:39.31.5.1-43.el7
- iwl1000-firmware.noarch 1:39.31.5.1-43.el7
- iwl105-firmware.noarch 0:18.168.6.1-43.el7
- iwl135-firmware.noarch 0:18.168.6.1-43.el7
- iwl2000-firmware.noarch 0:18.168.6.1-43.el7
- iwl2030-firmware.noarch 0:18.168.6.1-43.el7
- iwl3160-firmware.noarch 0:22.0.7.0-43.el7
- iwl3945-firmware.noarch 0:15.32.2.9-43.el7
- iwl4965-firmware.noarch 0:228.61.2.24-43.el7
- iwl5000-firmware.noarch 0:8.83.5.1_1-43.el7
- iwl5150-firmware.noarch 0:8.24.2.2-43.el7
- iwl6000-firmware.noarch 0:9.221.4.1-43.el7
- iwl6000g2a-firmware.noarch 0:17.168.5.3-43.el7
- iwl6000g2b-firmware.noarch 0:17.168.5.2-43.el7
- iwl6050-firmware.noarch 0:41.28.5.1-43.el7
- iwl7260-firmware.noarch 0:22.0.7.0-43.el7
- iwl7265-firmware.noarch 0:22.0.7.0-43.el7
- ivtv-firmware
- alsa-lib

## 削って大丈夫かよくわからないもの

- freetype
- grub2
- grub2-tools
- openssl
- authconfig
- fxload

# 結果

rpm 297個 → 260個