簡體   English   中英

在CentOS上安裝PHP軟件包

[英]PHP package install on CentOS

我想找出我的CentOS服務器中的一些問題。

我的服務器中已經安裝了兩個軟件包: php-cliphp-common 使用命令yum info時,我會看到它們的詳細yum info 但是,當我使用命令yum install php-cli ,我得到了安裝這兩個軟件包的報價,就像它們根本沒有安裝在服務器上一樣。 根據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]: 

看起來好像沒有安裝那些軟件包,否則會顯示Installed Packages ,例如

Installed Packages
Name        : php-cli
Arch        : x86_64
Epoch       : 0
Version     : 7.0.14
Release     : 1.fc25
Size        : 13 M
Repo        : @System
From repo   : updates
Summary     : Command-line interface for PHP
URL         : http://www.php.net/
License     : PHP and Zend and BSD
Description : The php-cli package contains the command-line interface
            : executing PHP scripts, /usr/bin/php, and the CGI interface.

按照“ yum”的手冊頁

"info Is used to list a description and summary information about available packages".

因此,它僅列出包,可在repositories.enter代碼中輸入

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM