bash is not dependent on python so I am not sure why this happened.
One thing I have noticed that if you try to update to the same level of package that is already installed then it try to move to latest level.
For example if you have already installed python-2.7.16-1.ppc and try to update to python-2.7.16-1.ppc then it will move to latest level.
But I do not think that was the case here. I tried on my system from moving to 2.7.16-1 to 2.7.17-1 and bash 5.0-1 it is working.
# yum update python-2.7.17-1.ppc python-tools-2.7.17-1.ppc python-devel-2.7.17-1.ppc bash-5.0-1.ppc
Setting up Update Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
The program yum-complete-transaction is found in the yum-utils package.
--> Running transaction check
---> Package bash.ppc 0:4.3.30-1 will be updated
---> Package bash.ppc 0:5.0-1 will be an update
---> Package python.ppc 0:2.7.16-1 will be updated
---> Package python.ppc 0:2.7.17-1 will be an update
---> Package python-devel.ppc 0:2.7.16-1 will be updated
---> Package python-devel.ppc 0:2.7.17-1 will be an update
---> Package python-tools.ppc 0:2.7.16-1 will be updated
---> Package python-tools.ppc 0:2.7.17-1 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================================================================================================
Updating:
bash ppc 5.0-1 AIX_Toolbox 3.1 M
python ppc 2.7.17-1 AIX_Toolbox 21 M
python-devel ppc 2.7.17-1 AIX_Toolbox 16 k
python-tools ppc 2.7.17-1 AIX_Toolbox 16 k
Transaction Summary
================================================================================================================================================================================================================
Upgrade 4 Packages
....
....
...
# rpm -qa | grep bash
bash-5.0-1.ppc
# rpm -qa | grep python
python-pycurl-7.43.0-1.ppc
python-devel-2.7.17-1.ppc
python-iniparse-0.4-1.noarch
python-urlgrabber-3.10.1-1.noarch
python3-3.7.9-1.ppc
python3-devel-3.7.9-1.ppc
python-2.7.17-1.ppc
python-tools-2.7.17-1.ppc
------------------------------
SANKET RATHI
------------------------------
Original Message:
Sent: Mon November 23, 2020 11:11 AM
From: christophe derouet
Subject: Update PYTHON to a specific version
Hello Sanket,
Please have a look to the following situations.
Situation N°1 : We ran the yum command below to update PYTHON to a specific version. It works very well. Life is beautiful !
arcci073(root) / # oslevel -s
7200-04-01-1939
arcci073(root) / #
arcci073(root) / # rpm -qa | grep python
python-urlgrabber-3.10.1-1.noarch
python-devel-2.7.16-1.ppc
python-pycurl-7.19.3-1.ppc
python-iniparse-0.4-1.noarch
python-2.7.16-1.ppc
python-tools-2.7.16-1.ppc
arcci073(root) / # yum history
ID | Command line | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
4 | update bash | 2020-10-01 09:58 | Update | 1 EE
3 | update python-2.7.16-1.p | 2020-10-01 09:55 | I, U | 17 EE
2 | update tcl | 2020-10-01 09:52 | I, U | 3 EE
1 | install test-dummy | 2020-10-01 09:52 | Install | 1 PP
history list
arcci073(root) / # yum history info python
Transaction ID : 3
Begin time : Thu Oct 1 09:55:21 2020
Begin rpmdb : 44:c35aa932c4a05bde203fabbd459fac26083a3f8e
End time : 09:55:50 2020 (29 seconds)
End rpmdb : 53:f3611c8a182e772cd9964e08c89e60705389f00c
User : System <unset>
Return-Code : Success
Command Line : update python-2.7.16-1.ppc python-tools-2.7.16-1.ppc python-devel-2.7.16-1.ppc
Transaction performed with:
Installed yum-3.4.3-7.noarch installed
Packages Altered:
Dep-Install bzip2-1.0.8-2.ppc @AIX_Toolbox
AIX_Toolbox | 2.9 kB 00:00:00
AIX_Toolbox_71 | 2.9 kB 00:00:00
AIX_Toolbox_72 | 2.9 kB 00:00:00
AIX_Toolbox_noarch | 2.9 kB 00:00:00
Updated expat-2.0.1-2.ppc @?AIX_Toolbox
Update 2.2.9-2.ppc @AIX_Toolbox
Updated gettext-0.19.7-1.ppc @?AIX_Toolbox
Update 0.19.8.1-5.ppc @AIX_Toolbox
Updated glib2-2.14.6-2.ppc @?AIX_Toolbox
Update 2.56.1-2.ppc @AIX_Toolbox
Dep-Install info-6.6-2.ppc @AIX_Toolbox
Dep-Install libffi-3.2.1-3.ppc @AIX_Toolbox
Dep-Install libiconv-1.16-1.ppc @AIX_Toolbox
Dep-Install libstdc++-8.3.0-2.ppc @AIX_Toolbox_72
Dep-Install libunistring-0.9.9-2.ppc @AIX_Toolbox
Dep-Install libxml2-2.9.9-1.ppc @AIX_Toolbox
Dep-Install ncurses-6.2-1.ppc @AIX_Toolbox
Updated python-2.7.10-1.ppc @?AIX_Toolbox
Update 2.7.16-1.ppc @AIX_Toolbox
Updated python-devel-2.7.10-1.ppc @?AIX_Toolbox
Update 2.7.16-1.ppc @AIX_Toolbox
Updated python-tools-2.7.10-1.ppc @?AIX_Toolbox
Update 2.7.16-1.ppc @AIX_Toolbox
Updated readline-6.1-2.ppc @?AIX_Toolbox
Update 8.0-2.ppc @AIX_Toolbox
Dep-Install xz-libs-5.2.5-1.ppc @AIX_Toolbox
Updated zlib-1.2.7-1.ppc @?AIX_Toolbox
Update 1.2.11-1.ppc @AIX_Toolbox
history info
arcci073(root) / #
Then we have decided to update the bash package under the control of another YUM command.
Situation N°2 : We ran the yum command below to update PYTHON to a specific version, but as we always want more, an update of bash has been included, in the same YUM command.
aimmi008:/tmp/yum_deploiement# oslevel -s
7200-04-01-1939
aimmi008:/tmp/yum_deploiement#
aimmi008:/tmp/yum_deploiement# yum history
ID | Command line | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
6 | install openldap | 2020-11-19 13:07 | Install | 2 EE
5 | update bash-5.0-1.ppc | 2020-11-18 15:23 | Update | 1 EE
4 | update python-2.7.16-1.p | 2020-11-18 15:21 | I, U | 16 EE
3 | install renderproto | 2020-11-18 14:58 | Install | 1 <
2 | update libstdc++ | 2020-11-18 14:54 | Update | 1 >E
1 | update libgcc | 2020-11-18 14:53 | Update | 1 EE
Warning: RPMDB altered outside of yum.
history list
aimmi008:/tmp/yum_deploiement# rpm -qa | grep -i python
python-urlgrabber-3.10.1-1.noarch
python-devel-2.7.18-1.ppc
python-pycurl-7.19.3-1.ppc
python-iniparse-0.4-1.noarch
python-2.7.18-1.ppc
python-tools-2.7.18-1.ppc
aimmi008:/tmp/yum_deploiement# yum history info python
Transaction ID : 4
Begin time : Wed Nov 18 15:21:35 2020
Begin rpmdb : 52:02cfcf4191ed2948f16bfe2ada091ca4a79b07e2
End time : 15:22:11 2020 (36 seconds)
End rpmdb : 56:33b4a25158009839f982da639dcf18ea24926754
User : System <unset>
Return-Code : Success
Command Line : update python-2.7.16-1.ppc python-tools-2.7.16-1.ppc python-devel-2.7.16-1.ppc bash-5.0-1.ppc
Transaction performed with:
Installed yum-3.4.3-7.noarch installed
Packages Altered:
Updated bzip2-1.0.6-1.ppc ?
Update 1.0.8-2.ppc @AIX_Toolbox
Updated bzip2-devel-1.0.6-1.ppc ?
Update 1.0.8-2.ppc @AIX_Toolbox
Updated expat-2.2.6-1.ppc @?AIX_Toolbox
Update 2.2.9-2.ppc @AIX_Toolbox
Updated expat-devel-2.2.6-1.ppc @?AIX_Toolbox
Update 2.2.9-2.ppc @AIX_Toolbox
Updated gdbm-1.8.3-5.ppc @?AIX_Toolbox
Update 1.18.1-1.ppc @AIX_Toolbox
Updated gettext-0.19.7-1.ppc @?AIX_Toolbox
Update 0.19.8.1-5.ppc @AIX_Toolbox
Updated glib2-2.48.0-1.ppc @?AIX_Toolbox
Update 2.56.1-2.ppc @AIX_Toolbox
Dep-Install libunistring-0.9.9-2.ppc @AIX_Toolbox
Dep-Install libxml2-2.9.9-1.ppc @AIX_Toolbox
Dep-Install ncurses-6.2-1.ppc @AIX_Toolbox
Updated python-2.7.10-1.ppc @?AIX_Toolbox
Update 2.7.18-1.ppc @AIX_Toolbox
Updated python-devel-2.7.10-1.ppc @?AIX_Toolbox
Update 2.7.18-1.ppc @AIX_Toolbox
Updated python-tools-2.7.10-1.ppc @?AIX_Toolbox
Update 2.7.18-1.ppc @AIX_Toolbox
Updated readline-7.0-3.ppc ?
Update 8.0-2.ppc @AIX_Toolbox
Updated sqlite-3.15.2-1.ppc @?AIX_Toolbox
Update 3.28.0-1.ppc @AIX_Toolbox
Dep-Install xz-libs-5.2.5-1.ppc @AIX_Toolbox
It seems that this was not a good idea as PYTHON has been updated to the latest available version, NOT the specified version.
Does the reason comes from the "circular dependencies" you told me at the beginiing of this post ?
I thank you very much for your help,
------------------------------
christophe derouet
Original Message:
Sent: Thu July 16, 2020 05:12 AM
From: christophe derouet
Subject: Update PYTHON to a specific version
Hello Sanket,
We thank you very much for this information.
On our next lpar where YUM will have to be installed we will Apply your suggested update command.
Have a nice day,
------------------------------
christophe derouet
Original Message:
Sent: Wed July 15, 2020 10:53 AM
From: SANKET RATHI
Subject: Update PYTHON to a specific version
After doing some experiments I think this is happening because of circular dependencies of these python packages.
These three packages has to be updated simultaneously.
Try the following command to update python to a specific version.
# yum update python-2.7.16-1.ppc python-tools-2.7.16-1.ppc python-devel-2.7.16-1.ppc
------------------------------
SANKET RATHI
Original Message:
Sent: Wed July 15, 2020 10:35 AM
From: SANKET RATHI
Subject: Update PYTHON to a specific version
Thank you reporting the issue. We will look into it why for python this functionality of yum is not working.
For time being as a workaround you may try following to install the specific python version of same machine.
# yum downgrade python-2.7.16-1.ppc python-tools-2.7.16-1.ppc python-devel-2.7.16-1.ppc
------------------------------
SANKET RATHI
Original Message:
Sent: Wed July 15, 2020 08:18 AM
From: christophe derouet
Subject: Update PYTHON to a specific version
Hello,
We have a test1 package, version 1 is installed.
When we run yum list test1 we can see a version 3 is available.
But we need the version2.
==> As we can see, we can run either yum install test1-version2 or yum update test1-version2.
==> Both commands are successfull.
By the same way, we tried to update PYTHON to an intermediate version,
but yum did installed the newest version. We do not understand why ?
==> Did we missed something ?
Please have a look to the enclosed log file.
We thank you very much for your help,
Christophe
------------------------------
christophe derouet
------------------------------