Skip to content

Instantly share code, notes, and snippets.

@oakaigh
Last active February 8, 2022 22:48
Show Gist options
  • Save oakaigh/0fb0b0a0105073217b06a9b861aef9c2 to your computer and use it in GitHub Desktop.
Save oakaigh/0fb0b0a0105073217b06a9b861aef9c2 to your computer and use it in GitHub Desktop.
CentOS Stream 8 to 9 Upgrade
#!/usr/bin/env bash
sudo dnf -y --disablerepo epel-modular install http://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/Packages/centos-{gpg-keys,stream-{release,repos}}-9.0-9.el9.noarch.rpm
sudo dnf -y --disablerepo epel-modular --nogpgcheck upgrade epel-release
sudo dnf -y --releasever=9 --allowerasing --setopt=deltarpm=false distro-sync
sudo rpmdb --rebuilddb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment