Note that package versions in CentOS Stream 8 can differ.
Furthermore, the the "platform python" is only for the system; not for the user.
For user there are currently four
streams:
Code: Select all
# dnf -q module list python\*
AlmaLinux 8 - x86_64 - AppStream - SBL
Name Stream Profiles Summary
python27 2.7 [d] common [d] Python programming language, version 2.7
python36 3.6 [d][e] build, common [d] Python programming language, version 3.6
python38 3.8 [d][e] build, common [d] Python programming language, version 3.8
python39 3.9 [d][e] build, common [d] Python programming language, version 3.9
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
Note also that streams have unique names, unlike, say 'php':
Code: Select all
# dnf -q module list php\*
AlmaLinux 8 - x86_64 - AppStream - SBL
Name Stream Profiles Summary
php 7.2 [d] common [d], devel, minimal PHP scripting language
php 7.3 common [d], devel, minimal PHP scripting language
php 7.4 common [d], devel, minimal PHP scripting language
php 8.0 common [d], devel, minimal PHP scripting language
This means that while system can have exactly one version of php installed, it can have all four python versions simultaneously installed.
There can be only one "python3" command though, but one can set it to desired version via
alternatives:
Code: Select all
# ll /usr/bin/python3
lrwxrwxrwx. 1 root root 25 May 19 2022 /usr/bin/python3 -> /etc/alternatives/python3
# ll /etc/alternatives/python3
lrwxrwxrwx. 1 root root 18 Nov 27 15:31 /etc/alternatives/python3 -> /usr/bin/python3.9
# ll /usr/bin/python3.9
-rwxr-xr-x. 1 root root 7768 Nov 16 17:53 /usr/bin/python3.9
In other words you had no need to remove the "python36" stream; you could simply have added the "python39" stream.
The `yum` is merely a symbolic link to command `dnf`, which is a python3.6 application.
You probably miss some of those packages too.
Code: Select all
# rpm -qa \*dnf\*
dnf-plugin-spacewalk-2.8.5-11.module_el8.3.0+2053+3ddf2832.noarch
dnf-plugins-core-4.0.21-14.1.el8.noarch
libdnf-0.63.0-11.1.el8.alma.x86_64
dnf-4.7.0-11.el8.alma.noarch
python3-dnf-plugin-spacewalk-2.8.5-11.module_el8.3.0+2053+3ddf2832.noarch
python3-dnf-4.7.0-11.el8.alma.noarch
python3-dnf-plugins-core-4.0.21-14.1.el8.noarch
python3-libdnf-0.63.0-11.1.el8.alma.x86_64
kpatch-dnf-0.4-3.el8.noarch
dnf-data-4.7.0-11.el8.alma.noarch