Below command can be executed to install Python on Oracle Linux machines.
Below is snippet seen on console as an example when yum command is executed for installing python.
Once python installation is completed, run below command to check the version of Python installed.
Additional Reference
https://yum.oracle.com/oracle-linux-python.html#InstallPython
yum install python
Below is snippet seen on console as an example when yum command is executed for installing python.
==========================================================================================================================================================
Package Arch Version Repository Size
==========================================================================================================================================================
Updating:
python x86_64 2.7.5-86.0.1.el7 ol7_latest 95 k
Updating for dependencies:
python-libs x86_64 2.7.5-86.0.1.el7 ol7_latest 5.6 M
Transaction Summary
==========================================================================================================================================================
Upgrade 1 Package (+1 Dependent package)
Total download size: 5.7 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/2): python-2.7.5-86.0.1.el7.x86_64.rpm | 95 kB 00:00:00
(2/2): python-libs-2.7.5-86.0.1.el7.x86_64.rpm | 5.6 MB 00:00:06
----------------------------------------------------------------------------------------------------------------------------------------------------------
Total 922 kB/s | 5.7 MB 00:00:06
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : python-libs-2.7.5-86.0.1.el7.x86_64 1/4
Updating : python-2.7.5-86.0.1.el7.x86_64 2/4
Cleanup : python-2.7.5-58.0.1.el7.x86_64 3/4
Cleanup : python-libs-2.7.5-58.0.1.el7.x86_64 4/4
Verifying : python-2.7.5-86.0.1.el7.x86_64 1/4
Verifying : python-libs-2.7.5-86.0.1.el7.x86_64 2/4
Verifying : python-libs-2.7.5-58.0.1.el7.x86_64 3/4
Verifying : python-2.7.5-58.0.1.el7.x86_64 4/4
Updated:
python.x86_64 0:2.7.5-86.0.1.el7
Dependency Updated:
python-libs.x86_64 0:2.7.5-86.0.1.el7
Complete!
Package Arch Version Repository Size
==========================================================================================================================================================
Updating:
python x86_64 2.7.5-86.0.1.el7 ol7_latest 95 k
Updating for dependencies:
python-libs x86_64 2.7.5-86.0.1.el7 ol7_latest 5.6 M
Transaction Summary
==========================================================================================================================================================
Upgrade 1 Package (+1 Dependent package)
Total download size: 5.7 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/2): python-2.7.5-86.0.1.el7.x86_64.rpm | 95 kB 00:00:00
(2/2): python-libs-2.7.5-86.0.1.el7.x86_64.rpm | 5.6 MB 00:00:06
----------------------------------------------------------------------------------------------------------------------------------------------------------
Total 922 kB/s | 5.7 MB 00:00:06
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : python-libs-2.7.5-86.0.1.el7.x86_64 1/4
Updating : python-2.7.5-86.0.1.el7.x86_64 2/4
Cleanup : python-2.7.5-58.0.1.el7.x86_64 3/4
Cleanup : python-libs-2.7.5-58.0.1.el7.x86_64 4/4
Verifying : python-2.7.5-86.0.1.el7.x86_64 1/4
Verifying : python-libs-2.7.5-86.0.1.el7.x86_64 2/4
Verifying : python-libs-2.7.5-58.0.1.el7.x86_64 3/4
Verifying : python-2.7.5-58.0.1.el7.x86_64 4/4
Updated:
python.x86_64 0:2.7.5-86.0.1.el7
Dependency Updated:
python-libs.x86_64 0:2.7.5-86.0.1.el7
Complete!
Once python installation is completed, run below command to check the version of Python installed.
python -V
Products to which Article Applies
Steps in this Article for installing Python were tested on Oracle Linux. But the same steps should on other Linux Operating Systems as well using yum setup.Additional Reference
https://yum.oracle.com/oracle-linux-python.html#InstallPython
tarun boyella
No comments:
Post a Comment