#!/bin/bash
[ "$UID" != 0 ] && { exec sudo bash "$0" && exit 0; }
# Browse the Oracle Linux 9 package repositories https://yum.oracle.com/oracle-linux-9.html
yum config-manager --enable ol9_u6_baseos_base ol9_addons ol9_codeready_builder
yum install -y oraclelinux-developer-release-el9
yum install -y oracle-java-jdk-release-el9
yum install -y oracle-epel-release-el9
yum update -y
yum groupinstall -y gnome-desktop development graphical-admin-tools fonts
yum groupinstall -y custom-environment virtualization-host-environment
yum install -y virt-manager gnome-calculator galculator
yum install -y chromium firefox links
yum install -y gnome-system-monitor htop btop
yum install -y baobab gparted gnome-disk-utility dbus-x11
yum install -y p7zip p7zip-plugins unar file-roller gimp ristretto libreoffice
yum install -y https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-9.noarch.rpm
yum install -y https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-9.noarch.rpm
yum update -y
yum install -y mpv vlc vlc-plugins-freeworld x26*

systemctl set-default graphical.target
