CentOS 6.6 上 yum 在哪里安装 python?

Ray*_*emi 5 python centos yum centos6

我使用以下命令在 CentOS 6.6 系统上安装了 python27:

% yum install python27
Run Code Online (Sandbox Code Playgroud)

安装成功,但我找不到 python27 可执行文件。它不在以下地方:

/bin
/usr/bin
/usr/local/bin
Run Code Online (Sandbox Code Playgroud)

再次运行yum命令告诉我没有什么可做的。

[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]$
Run Code Online (Sandbox Code Playgroud)

python27 可能在哪里?

除了显示已安装的消息之外,我没有看到任何证据表明它确实已安装。我是否缺少将其放入 /usr/bin 的步骤?

Pau*_*rov 2

rpm -ql <package name>
Run Code Online (Sandbox Code Playgroud)

将显示已安装的 rpm 中的所有文件。

  • 遗憾的是我运行了它: rpm -ql python27 --&gt; (不包含文件) (3认同)