gpt4 book ai didi

在 CentOS 上安装 PHP 包

转载 作者:行者123 更新时间:2023-12-04 19:37:22 24 4
gpt4 key购买 nike

我想找出我的 CentOS 服务器中的一些问题。

我的服务器中已经安装了两个软件包:php-cliphp-common .当我使用命令 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.

关于在 CentOS 上安装 PHP 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41609837/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com