PDA

View Full Version : apt-get lists php-cli



Peter Laws
09-06-2010, 02:16 PM
Silly question, but will an apt-get upgrade be ok, it lists :

php-pear php5-cli php5-common php5-dev
I swear I've never seen php in there before on servers I upgrade regulary so I'm a bit weiry.

TIA

smtalk
09-06-2010, 11:54 PM
Please post the output of:


dpkg -l | grep php

Peter Laws
09-07-2010, 03:17 AM
~# dpkg -l | grep php

ii php-config 1.10.11-1 Your configuration's swiss-army knife
ii php-pear 5.2.6.dfsg.1-1+lenny8 PEAR - PHP Extension and Application Repository
ii php5-cli 5.2.6.dfsg.1-1+lenny8 command-line interpreter for the php5 scripting language
ii php5-common 5.2.6.dfsg.1-1+lenny8 Common files for packages built from the php5 source
ii php5-dev 5.2.6.dfsg.1-1+lenny8 Files for PHP5 module development

smtalk
09-07-2010, 04:41 AM
So, remove PHP packages using "dpkg -r package" and run "apt-get upgrade" again :) Good luck!

Peter Laws
09-07-2010, 04:56 AM
This is weird......

:~# dpkg -r php5-cli

dpkg: dependency problems prevent removal of php5-cli:
php-pear depends on php5-cli | php4-cli; however:
Package php5-cli is to be removed.
Package php4-cli is not installed.
dpkg: error processing php5-cli (--remove):
dependency problems - not removing
Errors were encountered while processing:
php5-cli

:~# dpkg --get-selections | grep php

php-config install
php-pear install
php5-cli deinstall
php5-common install
php5-dev install

Maybe I did install php-pear at some point?

smtalk
09-07-2010, 05:12 AM
Yes, you need to remove php-pear too.

Peter Laws
09-07-2010, 05:26 AM
Thing is, I'm sure I installed it for a reason..... What, I fogot lol!

If I did let it install php-cli, it won't affect mod_apache I presume(?), but it may stuff up any cron stuff that uses the php binary?