Where yum installs python on CentOS 6.6?

I installed python27 on my CentOS 6.6 system using the following command:

% yum install python27

The installation was successful, but I can not find the python27 executable. It is not in the following places:

/bin
/usr/bin
/usr/local/bin

Running the team yumagain tells me that there is nothing to do.

[ray@localhost bin]$ sudo yum install python27
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirrors.mit.edu
 * extras: mirrors.lga7.us.voxel.net
 * rpmforge: apt.sw.be
 * rpmforge-extras: apt.sw.be
 * updates: centos-distro.1gservers.com
Setting up Install Process
Package python27-1.1-25.el6.x86_64 already installed and latest version
Nothing to do
[ray@localhost bin]$

Where could python27 be?

I see no evidence that it is actually installed otherwise than a message that it is installed. Is there any step I am missing to get it in / usr / bin?

+4
source share
3 answers
rpm -ql <package name>

will show you all the files in the rpm you set.

+2
source

Try:

alternatives --list | grep python

, , greps python .

+1

I had the same problem. Finally, I installed python 2.7 following the instructions in this document . It compiles python 2.7 with make altinstall, so you keep the old version:

cd /usr/src
sudo wget https://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz
sudo tar xzf Python-2.7.6.tgz
cd Python-2.7.6
sudo ./configure
sudo make altinstall

Note:

python2.7 -V

Hope this helps.

+1
source

All Articles