私のCentOSサーバーでいくつかの問題を把握したいと思います。CentOSでのPHPパッケージのインストール
サーバーに既にインストールされている2つのパッケージ、php-cli
とphp-common
があります。 yum info
というコマンドを使用すると、その詳細が表示されます。しかし、私がコマンドyum install php-cli
を使用するとき、私はこれらの2つのパッケージをインストールするオファーを得ます、それらはサーバーに全くインストールされていません。 info
コマンドによれば、既にインストールされているパッケージには、サーバーがインストールするパッケージと同じバージョンのパッケージが含まれています。
誰でも説明できますか?
yum info php-cli
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: centos.syn.co.il
* epel: mirror.nonstop.co.il
* extras: centos.syn.co.il
* rpmforge: apt.sw.be
* updates: centos.syn.co.il
Available Packages
Name : php-cli
Arch : x86_64
Version : 5.3.3
Release : 48.el6_8
Size : 2.2 M
Repo : updates
Summary : Command-line interface for PHP
URL : http://www.php.net/
License : PHP
Description : The php-cli package contains the command-line interface
: executing PHP scripts, /usr/bin/php, and the CGI interface.
yum info php-common
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: centos.syn.co.il
* epel: mirror.nonstop.co.il
* extras: centos.syn.co.il
* rpmforge: apt.sw.be
* updates: centos.syn.co.il
Available Packages
Name : php-common
Arch : x86_64
Version : 5.3.3
Release : 48.el6_8
Size : 530 k
Repo : updates
Summary : Common files for PHP
URL : http://www.php.net/
License : PHP
Description : The php-common package contains files used by both the php
: package and the php-cli package.
yum install php-cli
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: centos.syn.co.il
* epel: mirror.nonstop.co.il
* extras: centos.syn.co.il
* rpmforge: apt.sw.be
* updates: centos.syn.co.il
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-cli.x86_64 0:5.3.3-48.el6_8 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-48.el6_8 for package: php-cli-5.3.3-48.el6_8.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.3.3-48.el6_8 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Installing:
php-cli x86_64 5.3.3-48.el6_8 updates 2.2 M
Installing for dependencies:
php-common x86_64 5.3.3-48.el6_8 updates 530 k
Transaction Summary
=============================================================================================================================
Install 2 Package(s)
Total download size: 2.7 M
Installed size: 9.1 M
Is this ok [y/N]:
OK、ありがとう。何らかの理由で、私は 'yum info'がインストールされたパッケージに関する情報を提示していることを確信しました。 – Omri