25 lines
No EOL
917 B
Bash
Executable file
25 lines
No EOL
917 B
Bash
Executable file
#!/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 |