Tyleo-Scripts/up/rocky8-9

25 lines
917 B
Text
Raw Normal View History

2024-02-18 18:06:30 +00:00
#!/usr/bin/env bash
# Securely stop services (Docker+LibVirt)
sudo systemctl stop libvirt0
sudo systemctl stop libvirt
sudo systemctl stop docker.socket
sudo systemctl stop docker
# Update current system packages
sudo dnf up -y
sudo dnf in wget -y
# Install Upgrade Packages (To 9.1 Release)
sudo dnf in -y https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/rocky-gpg-keys-9.1-1.11.el9.noarch.rpm
sudo dnf in -y https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/rocky-release-9.1-1.11.el9.noarch.rpm
sudo dnf in -y https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/rocky-repos-9.1-1.11.el9.noarch.rpm
# Install 9.1 packages by overgrading (erasing over it) then Sync Distro to 9.1
sudo dnf --releasever=9 --allowerasing --setopt=deltarpm=false distro-sync -y
# RPM Database Rebuild then Reboot to operate
sudo rpm --rebuilddb
# REBOOT
sudo reboot