Step 1: Do note down and list enabled repos:
yum repolist
yum repolist enabled > /tmp/pre.update.dnf.repo.txt
Step 2: Run update
sudo dnf update
Step 3: Installing CentOS Stream packages
sudo dnf in centos-release-stream -y
Step 4: Migrating From CentOS 8 to CentOS Stream
sudo dnf swap centos-linux-repos centos-stream-repos -y
Step 5: Upgrading CentOS 8 to CentOS Stream
sudo dnf distro-sync
sudo systemctl reboot
cat /etc/centos-release
Make sure there are no errors
sudo tail -f /var/log/messages
sudo grep -i -E 'err|wan|cri' /var/log/messages
sudo grep -i -E 'err|wan|cri' /var/log/nginx/error.log
A note about 3rd party dnf repos
Some dnf repos may be renamed or disabled to prevent upgrade issues. It would be best if you validated those manually.
yum repolist enabled > /tmp/post.update.dnf.repo.txt
diff /tmp/pre.update.dnf.repo.txt /tmp/post.update.dnf.repo.txt
5/5 - (2 votes)