<- Scripts
#!/bin/bash
# Source: Reqs for Installing Oracle 19c on OL8 or RHEL8 64-bit (x86-64) (Doc ID 2668780.1)
optInstallPkgs=1
# Confirmation
clear
printf "+----------------------------------+\n"
printf "| Install Oracle Required Packages |\n"
printf "+----------------------------------+\n\n"
read -p "Are you sure want to continue [y\n]? " choice
case "$choice" in
y|Y) echo "YES selected.";;
n|N) echo "NO selected - script exited."
exit;;
*) echo "Invalid Entry - script exited."
exit;;
esac
# Install LINUX Packages
if [[ $optInstallPkgs -eq 1 ]]; then
printf "\nInstalling LINUX Packages...\n\n"
for PKG in bc binutils elfutils-libelf elfutils-libelf-devel fontconfig-devel glibc glibc-devel ksh libaio libaio-devel libXrender libX11 libXau libXi libXtst libgcc libnsl librdmacm libstdc++ libstdc++-devel libxcb libibverbs make smartmontools sysstat
do
yum install $PKG -y
done
for PKG in libnsl2 libnsl2-devel
do
yum install $PKG -y
done
# ME
yum install dnsmasq -y
printf "Install LINUX Packages: Completed\n\n\n"
printf "NEXT\n"
printf "shutdown -r now\n"
read -p "Press [Enter] to continue."
fi