Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


yum_installer_bash_script_centos8

dnf installer bash script (CentOS 8)

When you run the code below, ensure to redirect output and errors to a log file.

#!/bin/bash
#
# install-my-dnf-packages.bash
# CentOS 8 version
#
# 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:
# dnf group list
#
# Contents of groups can be found with:
# dnf group info "Group Name"
#
# TO RUN:
# ./install-my-dnf-packages.bash > /tmp/install-my-dnf-packages.log 2>&1
#
# DON'T FORGET:
# Google Chrome, VirtualBox

echo ""
echo "*****************************************************************"
echo "*                     CentOS 8 Updates                          *"
echo "*****************************************************************"


echo ""
echo "********************* NOW INSTALLING PACKAGE ********************"
echo "EPEL Repo"
echo "*****************************************************************"
dnf -y install wget
dnf -y install epel-release


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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

echo "install net-tools"
dnf -y install net-tools

echo "cups"
dnf -y install cups

echo "ImageMagick*"
dnf -y install ImageMagick*

echo "gedit"
dnf -y install gedit

#echo "kdegraphics"
#dnf -y install kdegraphics

echo "lftp"
dnf -y install lftp*

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

echo "ftp"
dnf -y install ftp

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

echo "NetworkManager*"
dnf -y install NetworkManager*

echo "openconnect*"
dnf -y install openconnect*

echo "evince"
dnf -y install evince

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

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

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

echo "deltarpm"
dnf -y install deltarpm

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

echo "ncftp"
dnf -y install ncftp

echo "dkms"
dnf -y install dkms

echo "gstreamer gstreamer-plugins-bad-free gstreamer-plugins-base gstreamer-plugins-good gstreamer-tools"
dnf -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"
dnf -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"
dnf -y install PackageKit-gstreamer-plugin

#echo "ktorrent"
#dnf -y install ktorrent

echo "gimp"
dnf -y install gimp

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

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

echo "perl-CPAN"
dnf -y install perl-CPAN

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

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

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

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

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

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

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

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

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

echo "bind-utils"
dnf -y install bind-utils

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

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

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

echo "qt5-qtbase"                              
dnf -y install "qt5-qtbase"                    # VirtualBox EL7

echo "qt5-qtbase-gui"
dnf -y install "qt5-qtbase-gui"                # VirtualBox EL7

echo "qt5-qtx11extras"
dnf -y install "qt5-qtx11extras"               # VirtualBox EL7

echo "vsftpd"
dnf -y install vsftpd

echo "tcl"
dnf -y install tcl

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

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

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

echo "jq"                                      # TAT
dnf -y install jq

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

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

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

echo "ntpdate"
dnf -y install ntpdate

echo "gcc"
dnf -y install gcc

echo "kernel-devel"
dnf -y install kernel-devel

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

echo "tidy"
dnf -y install tidy

echo "mcelog"
dnf -y install mcelog

echo "pv"
dnf -y install pv

#echo "thunderbird"
#dnf -y install thunderbird

echo "dos2unix"                                # ASMAD
dnf -y install dos2unix

echo "tree"
dnf -y install tree

echo "iotop"
dnf -y install iotop

echo "deltarpm"
dnf -y install deltarpm

echo "gnome-tweaks"
dnf -y install gnome-tweaks

echo "keepass"
dnf -y install keepass


echo ""
echo "********************* NOW INSTALLING PACKAGE ********************"
echo "samba-*"
echo "*****************************************************************"
dnf -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"
#dnf -y install rdesktop                        # NUX desktop repo
#echo "vlc"
#dnf -y install vlc                             # Nux desktop repo


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 ""
yum_installer_bash_script_centos8.txt · Last modified: 2020/07/28 15:55 by juckins