Browse Source

Changes

master
kshitizsaini 2 years ago
parent
commit
0a66a8e501
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      upgrade.py

+ 3
- 2
upgrade.py View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import os
import time

@@ -40,8 +41,8 @@ os.system("package-cleanup --orphans")
os.system("yum -y install dnf")
os.system("dnf -y remove yum yum-metadata-parser")
os.system("rm -Rvf /etc/yum")
os.system("rm -rf /etc/yum/protected.d")
os.system("rm -rf /etc/yum/vars")
os.system("rm -rvf /etc/yum/protected.d")
os.system("rm -rvf /etc/yum/vars")
os.system("dnf makecache")
os.system("dnf -y upgrade")
os.system("dnf -y install http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/{centos-linux-repos-8-2.el8.noarch.rpm,centos-linux-release-8.4-1.2105.el8.noarch.rpm,centos-gpg-keys-8-2.el8.noarch.rpm}")


Loading…
Cancel
Save