cd /usr/local/src/python
rpm -ivh python3-* platform-python-* --nodeps --force
安装yum
cd /usr/local/src/yum
rpm -Uvh --force --nodeps *.rpm
验证yum安装版本
yum --version
#输出结果
4.7.0
Installed: dnf-0:4.7.0-4.el8.noarch at Sat 03 Sep 2022 03:36:18 AM GMT
Built : CentOS Buildsys <bugs@centos.org> at Fri 17 Sep 2021 07:06:14 PM GMT
Installed: rpm-0:4.14.3-19.el8.x86_64 at Sat 03 Sep 2022 03:36:09 AM GMT
Built : CentOS Buildsys <bugs@centos.org> at Fri 15 Oct 2021 05:46:55 PM GMT