drmgg4411 2017-01-12 09:47
浏览 54
已采纳

在CentOS上安装PHP包

I want to figure out some issue in my CentOS server.

I have two packages that already installed in my server: php-cli and php-common. I see their details when i use the command yum info. However, when i use the command yum install php-cli, i get an offer to install these two packages, like they are not installed on the server at all. According to the info command, the packages that already installed have the same version of the packages that the server offering to install.

Anyone can explain that?

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]: 
  • 写回答

2条回答 默认 最新

  • dongli1920 2017-01-12 09:55
    关注

    Doesn't look like those packages are installed, otherwise it would say Installed Packages, e.g.

    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.
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?