Yum installer bash script (CentOS 7)

When you run the code below, ensure to redirect output and errors to a log file.
If this is a new install, consider the SELinux settings.

#!/bin/bash
#
# install-my-yum-packages.bash
#
# NOTES:
# This script may not install MATE in a VirtualBox environment seamlessly.
# May need to get MATE running first, then run this script.
#
# Installed groups can be found with:
# yum group list
#
# Contents of groups can be found with:
# yum group info "Group Name"
#
# TO RUN:
# ./install-my-yum-packages.bash > /tmp/install-my-yum-packages.log 2>&1
#
# DON'T FORGET:
# Google Chrome, VirtualBox

echo ""
echo "*****************************************************************"
echo "*                     CentOS 7 Updates                          *"
echo "*****************************************************************"


echo ""
echo "********************* NOW INSTALLING PACKAGE ********************"
echo "EPEL Repo"
echo "*****************************************************************"
yum -y install wget
yum -y install epel-release
#mkdir /root/downloads
#cd /root/downloads
#wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm
#rpm -ivh epel-release-7-6.noarch.rpm


echo ""
echo "***************** UPDATING CURRENT PACKAGES  ********************"
echo "*****************************************************************"
yum -y update


echo ""
echo "********************* NOW INSTALLING PACKAGE ********************"
echo "Basic Web Server"
echo "*****************************************************************"
yum -y groupinstall "Basic Web Server"


#echo ""
#echo "********************* NOW INSTALLING PACKAGE ********************"
#echo "Compatibility libraries"
#echo "*****************************************************************"
#yum -y groupinstall "Compatibility libraries"


echo ""
#echo "********************* NOW INSTALLING PACKAGE ********************"
#echo "Console Internet Tools"
#echo "*****************************************************************"
#yum -y groupinstall "Console Internet Tools"


echo ""
echo "********************* NOW INSTALLING PACKAGE ********************"
echo "MATE Desktop"
echo "*****************************************************************"
yum -y groupinstall "MATE Desktop"
echo "mate-system-monitor"
yum -y install mate-system-monitor
echo "mate-applets"
yum -y install mate-applets 


#echo ""
#echo "********************* NOW INSTALLING PACKAGE ********************"
#echo "Desktop Platform"
#echo "*****************************************************************"
#yum -y groupinstall "Desktop Platform"


#echo ""
#echo "********************* NOW INSTALLING PACKAGE ********************"
#echo "Desktop Platform Development"
#echo "*****************************************************************"
#yum -y groupinstall "Desktop Platform Development"


#echo ""
#echo "********************* NOW INSTALLING PACKAGE ********************"
#echo "Development and Creative Workstation"
#echo "*****************************************************************"
#yum -y groupinstall "Development and Creative Workstation"


#echo ""
#echo "********************* NOW INSTALLING PACKAGE ********************"
#echo "Development Tools"
#echo "*****************************************************************"
#yum -y groupinstall "Development Tools"


#echo ""
#echo "********************* NOW INSTALLING PACKAGE ********************"
#echo "Electronic Lab"
#echo "*****************************************************************"
#yum -y groupinstall "Electronic Lab"


#echo ""
#echo "********************* NOW INSTALLING PACKAGE ********************"
#echo "General Purpose Desktop"
#echo "*****************************************************************"
#yum -y groupinstall "General Purpose Desktop"


echo ""
echo "********************* NOW INSTALLING PACKAGE ********************"
echo "Graphical Administration Tools"
echo "*****************************************************************"
yum -y groupinstall "Graphical Administration Tools"


#echo ""
#echo "********************* NOW INSTALLING PACKAGE ********************"
#echo "Graphics Creation Tools"
#echo "*****************************************************************"
#yum -y groupinstall "Graphics Creation Tools"


echo ""
echo "********************* NOW INSTALLING PACKAGE ********************"
echo "mariadb*"
echo "*****************************************************************"
yum -y install mariadb*


#echo ""
#echo "********************* NOW INSTALLING PACKAGE ********************"
#echo "SNMP Support"
#echo "*****************************************************************"
#yum -y groupinstall "SNMP Support"


#echo ""
#echo "********************* NOW INSTALLING PACKAGE ********************"
#echo "Scientific Support"
#echo "*****************************************************************"
#yum -y groupinstall "Scientific Support"


#echo ""
#echo "********************* NOW INSTALLING PACKAGE ********************"
#echo "Server Platform"
#echo "*****************************************************************"
#yum -y groupinstall "Server Platform"


#echo ""
#echo "********************* NOW INSTALLING PACKAGE ********************"
#echo "Server Platform Development"
#echo "*****************************************************************"
#yum -y groupinstall "Server Platform Development"


#echo ""
#echo "********************* NOW INSTALLING PACKAGE ********************"
#echo "Server with GUI"
#echo "*****************************************************************"
#yum -y groupinstall "Server with GUI"


#echo ""
#echo "********************* NOW INSTALLING PACKAGE ********************"
#echo "Smart Card Support"
#echo "*****************************************************************"
#yum -y groupinstall "Smart Card Support"


#echo ""
#echo "********************* NOW INSTALLING PACKAGE ********************"
#echo "System Administration Tools"
#echo "*****************************************************************"
#yum -y groupinstall "System Administration Tools"


#echo ""
#echo "********************* NOW INSTALLING PACKAGE ********************"
#echo "System Management"
#echo "*****************************************************************"
#yum -y groupinstall "System Management"


#echo ""
#echo "********************* NOW INSTALLING PACKAGE ********************"
#echo "Xfce"
#echo "*****************************************************************"
#yum -y groupinstall "Xfce"


echo ""
echo "********************* NOW INSTALLING PACKAGE ********************"
echo "X Window System"
echo "*** Note this is needed for MATE Desktop and graphical login ***"
echo "*****************************************************************"
yum -y groupinstall "X Window System"


echo ""
echo "********************* NOW INSTALLING PACKAGE ********************"
echo "libreoffice"
echo "*****************************************************************"
yum -y install libreoffice


echo ""
echo "********************* NOW INSTALLING EXTRAS  ********************"
echo "*****************************************************************"
echo "xorg-x11-fonts*"
yum -y install xorg-x11-fonts*

echo "install net-tools"
yum -y install net-tools

echo "cups"
yum -y install cups

echo "ImageMagick*"
yum -y install ImageMagick*

echo "gedit"
yum -y install gedit

#echo "kdegraphics"
#yum -y install kdegraphics

echo "lftp"
yum -y install lftp*

#echo "ssmtp*"
#yum -y install ssmtp*

echo "ftp"
yum -y install ftp

echo "mutt"
yum -y install mutt                             # mutt-1.5.21-27.el7.x86_64 does not work with cron

echo "NetworkManager*"
yum -y install NetworkManager*

echo "openconnect*"
yum -y install openconnect*

echo "evince"
yum -y install evince

#echo "gnome-packagekit-updater"
#yum -y install gnome-packagekit-updater           # for GUI icon notifying updates, not working

#echo "gnome-packagekit-installer"
#yum -y install gnome-packagekit-installer         # for GUI icon notifying updates, not working

#echo "gpk-update-viewer"
#yum -y install gpk-update-viewer

echo "deltarpm"
yum -y install deltarpm

#echo "*vpn*"
#yum -y install *vpn*                           # may not be needed (175MB)

echo "ncftp"
yum -y install ncftp

echo "dkms"
yum -y install dkms

echo "gstreamer gstreamer-plugins-bad-free gstreamer-plugins-base gstreamer-plugins-good gstreamer-tools"
yum -y install gstreamer gstreamer-plugins-bad-free gstreamer-plugins-base gstreamer-plugins-good gstreamer-tools

echo "gstreamer1 gstreamer1-libav gstreamer1-plugins-bad-free gstreamer1-plugins-bad-free-gtk gstreamer1-plugins-base gstreamer1-plugins-good gstreamer1-plugins-ugly-free"
yum -y install gstreamer1 gstreamer1-libav gstreamer1-plugins-bad-free gstreamer1-plugins-bad-free-gtk gstreamer1-plugins-base gstreamer1-plugins-good gstreamer1-plugins-ugly-free

echo "PackageKit-gstreamer-plugin"
yum -y install PackageKit-gstreamer-plugin

#echo "ktorrent"
#yum -y install ktorrent

echo "gimp"
yum -y install gimp

echo "php php-mbstring php-mcrypt php-mysql"
yum -y install php php-mbstring php-mcrypt php-mysql

echo "php-xml"
yum -y install php-xml                         # phpMyAdmin

echo "fail2ban.noarch"
yum -y install fail2ban.noarch                 # epel

echo "perl-JSON.noarch"
yum -y install perl-JSON.noarch

echo "perl-CPAN"
yum -y install perl-CPAN

echo "perl-File-Slurp.noarch"
yum -y install perl-File-Slurp.noarch          # base

echo "perl-IPC-System-Simple.noarch"
yum -y install perl-IPC-System-Simple.noarch   # base

echo "perl-IO-All.noarch"
yum -y install perl-IO-All.noarch              # epel

echo "perl-HTML-TableExtract.noarch"
yum -y install perl-HTML-TableExtract.noarch   # epel

echo "perl-List-Compare.noarch"
yum -y install perl-List-Compare.noarch        # epel

echo "perl-List-MoreUtils.x86_64"
yum -y install perl-List-MoreUtils.x86_64      # base

echo "perl-Math-Round"
yum -y install perl-Math-Round                 # epel

echo "perl-Tie-IxHash"
yum -y install perl-Tie-IxHash

#echo "perl-Array-Utils.noarch"
#yum -y install perl-Array-Utils.noarch        # epel    

echo "perl-Array-Diff.noarch perl-Array-Unique.noarch"
yum -y install perl-Array-Diff.noarch perl-Array-Unique.noarch

echo "perl-Try-Tiny"
yum -y install perl-Try-Tiny

echo "perl-Hash-MultiValue"
yum -y install perl-Hash-MultiValue

echo "freerdp"
yum -y install freerdp                         # replacement for rdesktop

echo "bind-utils"
yum -y install bind-utils

#echo "libpng12"
#yum -y install libpng12                       # Maybe VirtualBox EL7

echo "qt"
yum -y install qt                              # VirtualBox EL7

echo "qt-x11"
yum -y install qt-x11                          # VirtualBox EL7

echo "vsftpd"
yum -y install vsftpd

echo "tcl"
yum -y install tcl

echo "python-httplib2"
yum -y install python-httplib2                 # TAT

echo "MySQL-python"
yum -y install MySQL-python                    # TAT

echo "python-requests"
yum -y install python-requests                 # TAT

echo "python3"
yum -y install python3                         # TAT

echo "python3-devel"
yum -y install python3-devel                   # TAT

echo "jq"                                      # TAT
yum -y install jq

echo "gnome-disk-utility"
yum -y install gnome-disk-utility              # for gnome-disks command

echo "mod_ssl"
yum -y install mod_ssl                         # HTTPS functionality

echo "chrony"
yum -y install chrony                          # NTP / clock

echo "ntpdate"
yum -y install ntpdate

echo "NTP packages"
yum -y install ntp

echo "gcc"
yum -y install gcc

echo "kernel-devel"
yum -y install kernel-devel

echo "pangox-compat"
yum -y install pangox-compat                   # Cisco AnyConnect VPN client v4.x GUI

echo "tidy"
yum -y install tidy

echo "mcelog"
yum -y install mcelog

echo "pv"
yum -y install pv

echo "mlocate"
yum -y install mlocate

#echo "thunderbird"
#yum -y install thunderbird

echo "dos2unix"                                # ASMAD
yum -y install dos2unix

echo "tree"
yum -y install tree

echo "iotop"
yum -y install iotop

echo "ncdu"
yum -y install ncdu

echo "deltarpm"
yum -y install deltarpm

echo "keepass"
# Icon for panel laundher is in $HOME/Documents/keepass_icon.png
yum -y install keepass

# Best RDC for Windows
echo "remmina"
yum -y install remmina

# Better mail client
echo "alpine"
yum -y install alpine

# Allow sound in Firefox
echo "pavucontrol"
yum -y install pavucontrol
echo "pulseaudio*"
yum -y install pulseaudio*
echo "alsa-plugins-pulseaudio"
yum -y install alsa-plugins-pulseaudio

# Postfix
echo "postfix"
yum -y install postfix
systemctl enable postfix ; systemctl start postfix

echo ""
echo "********************* NOW INSTALLING PACKAGE ********************"
echo "samba-*"
echo "*****************************************************************"
yum -y install samba-*


echo ""
echo "*********************** ENABLE NUX Desktop Repo *****************"
# https://www.tecmint.com/enable-nux-dexktop-repository-on-rhel-centos/
echo "*****************************************************************"
rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro 
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
echo "rdesktop"
yum -y install rdesktop                        # NUX desktop repo
echo "vlc"
yum -y install vlc                             # Nux desktop repo


echo ""
echo "*********************** ENABLE RPMFUSION Repo *******************"
# This is for HEIC/HEIF support in GIMP
# https://support.moonpoint.com/os/unix/linux/centos/rpmfusion.php
echo "*****************************************************************"
yum -y install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
echo "gimp-heif-plugin"
yum -y install gimp-heif-plugin


echo ""
echo "*********************** ENABLE SERVICES  ************************"
echo "*****************************************************************"
systemctl start httpd.service
systemctl enable httpd.service
systemctl start chronyd.service
systemctl enable chronyd.service


echo ""
echo "******************** ENABLE GRAPHICAL LOGIN  ********************"
echo "*****************************************************************"
systemctl isolate graphical.target
systemctl set-default graphical.target


echo ""
echo "*****************************************************************"
echo "*                            DONE                               *"
echo "*****************************************************************"


echo ""
echo "*****************************************************************"
echo "You probably want to reboot your machine.                       *"
echo "*****************************************************************"
echo ""