Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


yum_installer_bash_script_centos8

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
yum_installer_bash_script_centos8 [2019/10/04 12:45]
juckins
yum_installer_bash_script_centos8 [2020/01/15 08:51]
juckins
Line 1: Line 1:
-==== Yum installer bash script (CentOS 8) ==+==== dnf installer bash script (CentOS 8) ==
  
 <color #ed1c24>When you run the code below, ensure to redirect output and errors to a log file.</color> <color #ed1c24>When you run the code below, ensure to redirect output and errors to a log file.</color>
Line 6: Line 6:
 #!/bin/bash #!/bin/bash
 # #
-# install-my-yum-packages.bash+# install-my-dnf-packages.bash
 # CentOS 8 version # CentOS 8 version
 # #
Line 14: Line 14:
 # #
 # Installed groups can be found with: # Installed groups can be found with:
-yum group list+dnf group list
 # #
 # Contents of groups can be found with: # Contents of groups can be found with:
-yum group info "Group Name"+dnf group info "Group Name"
 # #
 # TO RUN: # TO RUN:
-# ./install-my-yum-packages.bash > /tmp/install-my-yum-packages.log 2>&1+# ./install-my-dnf-packages.bash > /tmp/install-my-dnf-packages.log 2>&1
 # #
 # DON'T FORGET: # DON'T FORGET:
Line 27: Line 27:
 echo "" echo ""
 echo "*****************************************************************" echo "*****************************************************************"
-echo "                    CentOS Updates                          *"+echo "                    CentOS Updates                          *"
 echo "*****************************************************************" echo "*****************************************************************"
  
Line 35: Line 35:
 echo "EPEL Repo" echo "EPEL Repo"
 echo "*****************************************************************" echo "*****************************************************************"
-yum -y install wget +dnf -y install wget 
-yum -y install epel-release +dnf -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+
  
  
Line 46: Line 42:
 echo "***************** UPDATING CURRENT PACKAGES  ********************" echo "***************** UPDATING CURRENT PACKAGES  ********************"
 echo "*****************************************************************" echo "*****************************************************************"
-yum -y update+dnf -y update
  
  
Line 53: Line 49:
 echo "Basic Web Server" echo "Basic Web Server"
 echo "*****************************************************************" echo "*****************************************************************"
-yum -y groupinstall "Basic Web Server"+dnf -y groupinstall "Basic Web Server"
  
  
Line 60: Line 56:
 #echo "Compatibility libraries" #echo "Compatibility libraries"
 #echo "*****************************************************************" #echo "*****************************************************************"
-#yum -y groupinstall "Compatibility libraries"+#dnf -y groupinstall "Compatibility libraries"
  
  
Line 67: Line 63:
 #echo "Console Internet Tools" #echo "Console Internet Tools"
 #echo "*****************************************************************" #echo "*****************************************************************"
-#yum -y groupinstall "Console Internet Tools"+#dnf -y groupinstall "Console Internet Tools"
  
  
Line 74: Line 70:
 echo "MATE Desktop" echo "MATE Desktop"
 echo "*****************************************************************" echo "*****************************************************************"
-yum -y groupinstall "MATE Desktop"+dnf -y groupinstall "MATE Desktop"
 echo "mate-system-monitor" echo "mate-system-monitor"
-yum -y install mate-system-monitor+dnf -y install mate-system-monitor
 echo "mate-applets" echo "mate-applets"
-yum -y install mate-applets +dnf -y install mate-applets 
  
  
Line 85: Line 81:
 #echo "Desktop Platform" #echo "Desktop Platform"
 #echo "*****************************************************************" #echo "*****************************************************************"
-#yum -y groupinstall "Desktop Platform"+#dnf -y groupinstall "Desktop Platform"
  
  
Line 92: Line 88:
 #echo "Desktop Platform Development" #echo "Desktop Platform Development"
 #echo "*****************************************************************" #echo "*****************************************************************"
-#yum -y groupinstall "Desktop Platform Development"+#dnf -y groupinstall "Desktop Platform Development"
  
  
Line 99: Line 95:
 #echo "Development and Creative Workstation" #echo "Development and Creative Workstation"
 #echo "*****************************************************************" #echo "*****************************************************************"
-#yum -y groupinstall "Development and Creative Workstation"+#dnf -y groupinstall "Development and Creative Workstation"
  
  
Line 106: Line 102:
 #echo "Development Tools" #echo "Development Tools"
 #echo "*****************************************************************" #echo "*****************************************************************"
-#yum -y groupinstall "Development Tools"+#dnf -y groupinstall "Development Tools"
  
  
Line 113: Line 109:
 #echo "Electronic Lab" #echo "Electronic Lab"
 #echo "*****************************************************************" #echo "*****************************************************************"
-#yum -y groupinstall "Electronic Lab"+#dnf -y groupinstall "Electronic Lab"
  
  
Line 120: Line 116:
 #echo "General Purpose Desktop" #echo "General Purpose Desktop"
 #echo "*****************************************************************" #echo "*****************************************************************"
-#yum -y groupinstall "General Purpose Desktop"+#dnf -y groupinstall "General Purpose Desktop"
  
  
Line 127: Line 123:
 echo "Graphical Administration Tools" echo "Graphical Administration Tools"
 echo "*****************************************************************" echo "*****************************************************************"
-yum -y groupinstall "Graphical Administration Tools"+dnf -y groupinstall "Graphical Administration Tools"
  
  
Line 134: Line 130:
 #echo "Graphics Creation Tools" #echo "Graphics Creation Tools"
 #echo "*****************************************************************" #echo "*****************************************************************"
-#yum -y groupinstall "Graphics Creation Tools"+#dnf -y groupinstall "Graphics Creation Tools"
  
  
Line 141: Line 137:
 echo "mariadb*" echo "mariadb*"
 echo "*****************************************************************" echo "*****************************************************************"
-yum -y install mariadb*+dnf -y install mariadb*
  
  
Line 148: Line 144:
 #echo "SNMP Support" #echo "SNMP Support"
 #echo "*****************************************************************" #echo "*****************************************************************"
-#yum -y groupinstall "SNMP Support"+#dnf -y groupinstall "SNMP Support"
  
  
Line 155: Line 151:
 #echo "Scientific Support" #echo "Scientific Support"
 #echo "*****************************************************************" #echo "*****************************************************************"
-#yum -y groupinstall "Scientific Support"+#dnf -y groupinstall "Scientific Support"
  
  
Line 162: Line 158:
 #echo "Server Platform" #echo "Server Platform"
 #echo "*****************************************************************" #echo "*****************************************************************"
-#yum -y groupinstall "Server Platform"+#dnf -y groupinstall "Server Platform"
  
  
Line 169: Line 165:
 #echo "Server Platform Development" #echo "Server Platform Development"
 #echo "*****************************************************************" #echo "*****************************************************************"
-#yum -y groupinstall "Server Platform Development"+#dnf -y groupinstall "Server Platform Development"
  
  
Line 176: Line 172:
 #echo "Server with GUI" #echo "Server with GUI"
 #echo "*****************************************************************" #echo "*****************************************************************"
-#yum -y groupinstall "Server with GUI"+#dnf -y groupinstall "Server with GUI"
  
  
Line 183: Line 179:
 #echo "Smart Card Support" #echo "Smart Card Support"
 #echo "*****************************************************************" #echo "*****************************************************************"
-#yum -y groupinstall "Smart Card Support"+#dnf -y groupinstall "Smart Card Support"
  
  
Line 190: Line 186:
 #echo "System Administration Tools" #echo "System Administration Tools"
 #echo "*****************************************************************" #echo "*****************************************************************"
-#yum -y groupinstall "System Administration Tools"+#dnf -y groupinstall "System Administration Tools"
  
  
Line 197: Line 193:
 #echo "System Management" #echo "System Management"
 #echo "*****************************************************************" #echo "*****************************************************************"
-#yum -y groupinstall "System Management"+#dnf -y groupinstall "System Management"
  
  
Line 204: Line 200:
 #echo "Xfce" #echo "Xfce"
 #echo "*****************************************************************" #echo "*****************************************************************"
-#yum -y groupinstall "Xfce"+#dnf -y groupinstall "Xfce"
  
  
Line 212: Line 208:
 echo "*** Note this is needed for MATE Desktop and graphical login ***" echo "*** Note this is needed for MATE Desktop and graphical login ***"
 echo "*****************************************************************" echo "*****************************************************************"
-yum -y groupinstall "X Window System"+dnf -y groupinstall "X Window System"
  
  
Line 219: Line 215:
 echo "libreoffice" echo "libreoffice"
 echo "*****************************************************************" echo "*****************************************************************"
-yum -y install libreoffice+dnf -y install libreoffice
  
  
Line 226: Line 222:
 echo "*****************************************************************" echo "*****************************************************************"
 echo "xorg-x11-fonts*" echo "xorg-x11-fonts*"
-yum -y install xorg-x11-fonts*+dnf -y install xorg-x11-fonts*
  
 echo "install net-tools" echo "install net-tools"
-yum -y install net-tools+dnf -y install net-tools
  
 echo "cups" echo "cups"
-yum -y install cups+dnf -y install cups
  
 echo "ImageMagick*" echo "ImageMagick*"
-yum -y install ImageMagick*+dnf -y install ImageMagick*
  
 echo "gedit" echo "gedit"
-yum -y install gedit+dnf -y install gedit
  
 #echo "kdegraphics" #echo "kdegraphics"
-#yum -y install kdegraphics+#dnf -y install kdegraphics
  
 echo "lftp" echo "lftp"
-yum -y install lftp*+dnf -y install lftp*
  
 #echo "ssmtp*" #echo "ssmtp*"
-#yum -y install ssmtp*+#dnf -y install ssmtp*
  
 echo "ftp" echo "ftp"
-yum -y install ftp+dnf -y install ftp
  
 echo "mutt" echo "mutt"
-yum -y install mutt                             # mutt-1.5.21-27.el7.x86_64 does not work with cron+dnf -y install mutt                             # mutt-1.5.21-27.el7.x86_64 does not work with cron
  
 echo "NetworkManager*" echo "NetworkManager*"
-yum -y install NetworkManager*+dnf -y install NetworkManager*
  
 echo "openconnect*" echo "openconnect*"
-yum -y install openconnect*+dnf -y install openconnect*
  
 echo "evince" echo "evince"
-yum -y install evince+dnf -y install evince
  
 #echo "gnome-packagekit-updater" #echo "gnome-packagekit-updater"
-#yum -y install gnome-packagekit-updater           # for GUI icon notifying updates, not working+#dnf -y install gnome-packagekit-updater           # for GUI icon notifying updates, not working
  
 #echo "gnome-packagekit-installer" #echo "gnome-packagekit-installer"
-#yum -y install gnome-packagekit-installer         # for GUI icon notifying updates, not working+#dnf -y install gnome-packagekit-installer         # for GUI icon notifying updates, not working
  
 #echo "gpk-update-viewer" #echo "gpk-update-viewer"
-#yum -y install gpk-update-viewer+#dnf -y install gpk-update-viewer
  
 echo "deltarpm" echo "deltarpm"
-yum -y install deltarpm+dnf -y install deltarpm
  
 #echo "*vpn*" #echo "*vpn*"
-#yum -y install *vpn*                           # may not be needed (175MB)+#dnf -y install *vpn*                           # may not be needed (175MB)
  
 echo "ncftp" echo "ncftp"
-yum -y install ncftp+dnf -y install ncftp
  
 echo "dkms" echo "dkms"
-yum -y install dkms+dnf -y install dkms
  
 echo "gstreamer gstreamer-plugins-bad-free gstreamer-plugins-base gstreamer-plugins-good gstreamer-tools" 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+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" 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+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" echo "PackageKit-gstreamer-plugin"
-yum -y install PackageKit-gstreamer-plugin+dnf -y install PackageKit-gstreamer-plugin
  
 #echo "ktorrent" #echo "ktorrent"
-#yum -y install ktorrent+#dnf -y install ktorrent
  
 echo "gimp" echo "gimp"
-yum -y install gimp+dnf -y install gimp
  
 echo "php php-mbstring php-mcrypt php-mysql" echo "php php-mbstring php-mcrypt php-mysql"
-yum -y install php php-mbstring php-mcrypt php-mysql+dnf -y install php php-mbstring php-mcrypt php-mysql
  
 echo "fail2ban.noarch" echo "fail2ban.noarch"
-yum -y install fail2ban.noarch                 # epel+dnf -y install fail2ban.noarch                 # epel
  
 echo "perl-CPAN" echo "perl-CPAN"
-yum -y install perl-CPAN+dnf -y install perl-CPAN
  
 echo "perl-File-Slurp.noarch" echo "perl-File-Slurp.noarch"
-yum -y install perl-File-Slurp.noarch          # base+dnf -y install perl-File-Slurp.noarch          # base
  
 echo "perl-IPC-System-Simple.noarch" echo "perl-IPC-System-Simple.noarch"
-yum -y install perl-IPC-System-Simple.noarch   # base+dnf -y install perl-IPC-System-Simple.noarch   # base
  
 echo "perl-IO-All.noarch" echo "perl-IO-All.noarch"
-yum -y install perl-IO-All.noarch              # epel+dnf -y install perl-IO-All.noarch              # epel
  
 echo "perl-HTML-TableExtract.noarch" echo "perl-HTML-TableExtract.noarch"
-yum -y install perl-HTML-TableExtract.noarch   # epel+dnf -y install perl-HTML-TableExtract.noarch   # epel
  
 echo "perl-List-Compare.noarch" echo "perl-List-Compare.noarch"
-yum -y install perl-List-Compare.noarch        # epel+dnf -y install perl-List-Compare.noarch        # epel
  
 echo "perl-List-MoreUtils.x86_64" echo "perl-List-MoreUtils.x86_64"
-yum -y install perl-List-MoreUtils.x86_64      # base+dnf -y install perl-List-MoreUtils.x86_64      # base
  
 echo "perl-Math-Round" echo "perl-Math-Round"
-yum -y install perl-Math-Round                 # epel+dnf -y install perl-Math-Round                 # epel
  
 #echo "perl-Array-Utils.noarch" #echo "perl-Array-Utils.noarch"
-#yum -y install perl-Array-Utils.noarch        # epel    +#dnf -y install perl-Array-Utils.noarch        # epel    
  
 echo "freerdp" echo "freerdp"
-yum -y install freerdp                         # replacement for rdesktop+dnf -y install freerdp                         # replacement for rdesktop
  
 echo "bind-utils" echo "bind-utils"
-yum -y install bind-utils+dnf -y install bind-utils
  
 #echo "libpng12" #echo "libpng12"
-#yum -y install libpng12                       # Maybe VirtualBox EL7+#dnf -y install libpng12                       # Maybe VirtualBox EL7
  
 echo "qt" echo "qt"
-yum -y install qt                              # VirtualBox EL7+dnf -y install qt                              # VirtualBox EL7
  
 echo "qt-x11" echo "qt-x11"
-yum -y install qt-x11                          # VirtualBox EL7+dnf -y install qt-x11                          # VirtualBox EL7
  
 echo "vsftpd" echo "vsftpd"
-yum -y install vsftpd+dnf -y install vsftpd
  
 echo "tcl" echo "tcl"
-yum -y install tcl+dnf -y install tcl
  
 echo "python-httplib2" echo "python-httplib2"
-yum -y install python-httplib2                 # TAT+dnf -y install python-httplib2                 # TAT
  
 echo "MySQL-python" echo "MySQL-python"
-yum -y install MySQL-python                    # TAT+dnf -y install MySQL-python                    # TAT
  
 echo "python-requests" echo "python-requests"
-yum -y install python-requests                 # TAT+dnf -y install python-requests                 # TAT
  
 echo "jq"                                      # TAT echo "jq"                                      # TAT
-yum -y install jq+dnf -y install jq
  
 echo "gnome-disk-utility" echo "gnome-disk-utility"
-yum -y install gnome-disk-utility              # for gnome-disks command+dnf -y install gnome-disk-utility              # for gnome-disks command
  
 echo "mod_ssl" echo "mod_ssl"
-yum -y install mod_ssl                         # HTTPS functionality+dnf -y install mod_ssl                         # HTTPS functionality
  
 echo "chrony" echo "chrony"
-yum -y install chrony                          # NTP / clock+dnf -y install chrony                          # NTP / clock
  
 echo "ntpdate" echo "ntpdate"
-yum -y install ntpdate+dnf -y install ntpdate
  
 echo "gcc" echo "gcc"
-yum -y install gcc+dnf -y install gcc
  
 echo "kernel-devel" echo "kernel-devel"
-yum -y install kernel-devel+dnf -y install kernel-devel
  
 echo "pangox-compat" echo "pangox-compat"
-yum -y install pangox-compat                   # Cisco AnyConnect VPN client v4.x GUI+dnf -y install pangox-compat                   # Cisco AnyConnect VPN client v4.x GUI
  
 echo "tidy" echo "tidy"
-yum -y install tidy+dnf -y install tidy
  
 echo "mcelog" echo "mcelog"
-yum -y install mcelog+dnf -y install mcelog
  
 echo "pv" echo "pv"
-yum -y install pv+dnf -y install pv
  
 #echo "thunderbird" #echo "thunderbird"
-#yum -y install thunderbird+#dnf -y install thunderbird
  
 echo "dos2unix"                                # ASMAD echo "dos2unix"                                # ASMAD
-yum -y install dos2unix+dnf -y install dos2unix
  
 echo "tree" echo "tree"
-yum -y install tree+dnf -y install tree
  
 echo "iotop" echo "iotop"
-yum -y install iotop+dnf -y install iotop
  
 echo "deltarpm" echo "deltarpm"
-yum -y install deltarpm+dnf -y install deltarpm 
 + 
 +echo "gnome-tweaks" 
 +dnf -y install gnome-tweaks
  
  
Line 416: Line 415:
 echo "samba-*" echo "samba-*"
 echo "*****************************************************************" echo "*****************************************************************"
-yum -y install samba-*+dnf -y install samba-*
  
  
Line 423: Line 422:
 # https://www.tecmint.com/enable-nux-dexktop-repository-on-rhel-centos/ # https://www.tecmint.com/enable-nux-dexktop-repository-on-rhel-centos/
 echo "*****************************************************************" echo "*****************************************************************"
-rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro  +#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 +#rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm 
-echo "rdesktop" +#echo "rdesktop" 
-yum -y install rdesktop                        # NUX desktop repo +#dnf -y install rdesktop                        # NUX desktop repo 
-echo "vlc" +#echo "vlc" 
-yum -y install vlc                             # Nux desktop repo+#dnf -y install vlc                             # Nux desktop repo
  
  
yum_installer_bash_script_centos8.txt · Last modified: 2021/06/11 14:41 by juckins