if [ "$(id -u)" != 0 ]; then
    echo >&2 "please, run this under 'root' user"
    exit 1
fi
yum distro-sync -y libsss_idmap kpartx sssd-krb5-common nspr xorg-x11-drv-v4l xorg-x11-drv-vesa python-sssdconfig nss-sysinit netcf-libs xorg-x11-server-common mesa-libgbm mcelog mesa-libGL json-c libpciaccess sssd glusterfs openldap spice-gtk-python libref_array elfutils-libs gtk2 sssd-krb5 nss xorg-x11-drv-qxl xorg-x11-drv-ati elfutils-libelf libxcb nss-util libbasicobjects libdrm glusterfs-libs sssd-common-pac mesa-dri-drivers glusterfs-api spice-server xorg-x11-drv-synaptics spice-gtk libipa_hbac ca-certificates libX11 tzdata-java elfutils libini_config sssd-proxy xorg-x11-server-Xorg firefox mesa-private-llvm xkeyboard-config audit-libs mesa-libEGL sssd-ad virt-viewer certmonger libX11-common openscap tzdata nss-tools systemtap-runtime java-1.6.0-openjdk sssd-ldap xorg-x11-drv-intel audit sssd-ipa sssd-client libnl3 mdadm pixman sssd-common mesa-libGLU spice-glib gdisk libitm glx-utils biosdevname
