Can anyone tell me why debian apt-get insists on installing apache when I only want to install php5 and php5-cgi (I already have lighttpd installed and prefer to use that)?
And is there a way I can modify that default behaviour?
Thanks
Mick
---------------------------------------------------------------------
The text file for RFC 854 contains exactly 854 lines. Do you think there is any cosmic significance in this?
Douglas E Comer - Internetworking with TCP/IP Volume 1
http://www.ietf.org/rfc/rfc854.txt ---------------------------------------------------------------------
On Fri, Aug 01, 2008 at 11:19:20AM +0100, mbm wrote:
Can anyone tell me why debian apt-get insists on installing apache when I only want to install php5 and php5-cgi (I already have lighttpd installed and prefer to use that)?
How are you actually installing it? php5 will by default want to pull in libapache2-mod-php5 though php5-cgi should meet the dependency instead if necessary.
"aptitude install php5" wants to pull in Apache here (Debian/sid) but "aptitude install php5 php5-cgi" only wants to install php5, php5-cgi and php5-common.
J.
On Fri, 1 Aug 2008 11:24:51 +0100 Jonathan McDowell noodles@earth.li allegedly wrote:
How are you actually installing it? php5 will by default want to pull in libapache2-mod-php5 though php5-cgi should meet the dependency instead if necessary.
"aptitude install php5" wants to pull in Apache here (Debian/sid) but "aptitude install php5 php5-cgi" only wants to install php5, php5-cgi and php5-common.
J.
I'm using "apt-get install php5 php5-cgi"
Mick
---------------------------------------------------------------------
The text file for RFC 854 contains exactly 854 lines. Do you think there is any cosmic significance in this?
Douglas E Comer - Internetworking with TCP/IP Volume 1
http://www.ietf.org/rfc/rfc854.txt ---------------------------------------------------------------------
On Fri, Aug 01, 2008 at 11:28:26AM +0100, mbm wrote:
On Fri, 1 Aug 2008 11:24:51 +0100 Jonathan McDowell noodles@earth.li allegedly wrote:
How are you actually installing it? php5 will by default want to pull in libapache2-mod-php5 though php5-cgi should meet the dependency instead if necessary.
"aptitude install php5" wants to pull in Apache here (Debian/sid) but "aptitude install php5 php5-cgi" only wants to install php5, php5-cgi and php5-common.
I'm using "apt-get install php5 php5-cgi"
Try "apt-get install php5-cgi php5". aptitude is obviously smarter about checking all packages to be installed for meeting deps earlier in the list.
J.
On Fri, 1 Aug 2008 11:31:27 +0100 Jonathan McDowell noodles@earth.li allegedly wrote:
Try "apt-get install php5-cgi php5". aptitude is obviously smarter about checking all packages to be installed for meeting deps earlier in the list.
Cool. That works. It even leaves python in place and give me the option to autoremove later.
But that still leaves me puzzled as to why apt-get should assume I need apache if I place php5 first in the list.
Thanks a lot.
Mick
---------------------------------------------------------------------
The text file for RFC 854 contains exactly 854 lines. Do you think there is any cosmic significance in this?
Douglas E Comer - Internetworking with TCP/IP Volume 1
http://www.ietf.org/rfc/rfc854.txt ---------------------------------------------------------------------
On Fri, 1 Aug 2008 11:24:51 +0100 Jonathan McDowell noodles@earth.li allegedly wrote:
How are you actually installing it? php5 will by default want to pull in libapache2-mod-php5 though php5-cgi should meet the dependency instead if necessary.
"aptitude install php5" wants to pull in Apache here (Debian/sid) but "aptitude install php5 php5-cgi" only wants to install php5, php5-cgi and php5-common.
J.
Additional info - debian lenny, if that makes any difference.
M
---------------------------------------------------------------------
The text file for RFC 854 contains exactly 854 lines. Do you think there is any cosmic significance in this?
Douglas E Comer - Internetworking with TCP/IP Volume 1
http://www.ietf.org/rfc/rfc854.txt ---------------------------------------------------------------------
On Fri, 1 Aug 2008 11:24:51 +0100 Jonathan McDowell noodles@earth.li allegedly wrote:
How are you actually installing it? php5 will by default want to pull in libapache2-mod-php5 though php5-cgi should meet the dependency instead if necessary.
"aptitude install php5" wants to pull in Apache here (Debian/sid) but "aptitude install php5 php5-cgi" only wants to install php5, php5-cgi and php5-common.
J.
Hmm. That's interesting. I'd never known there would be a difference in behaviour between "aptitude install" and "apt-get install". But after your email I tried it and got the following:
aptitude install php5 php5-cgi
gives:
The following NEW packages will be installed: php5 php5-cgi php5-common{a} The following packages will be REMOVED: python2.4{u} python2.4-minimal{u} 0 packages upgraded, 3 newly installed, 2 to remove and 0 not upgraded. Need to get 5271kB of archives. After unpacking 1679kB will be freed.
whilst apt-get install php5 php5-cgi
gives:
The following extra packages will be installed: apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libexpat1 libmysqlclient15off libpq5 mysql-common php5-common Suggested packages: apache2-doc apache2-suexec apache2-suexec-custom php-pear php5-timezonedb The following NEW packages will be installed apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libexpat1 libmysqlclient15off libpq5 mysql-common php5 php5-cgi php5-common 0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded. Need to get 11.5MB of archives.
Now I actually want to keep python installed so the aptitude install option is not helpful either. :-)
Mick ---------------------------------------------------------------------
The text file for RFC 854 contains exactly 854 lines. Do you think there is any cosmic significance in this?
Douglas E Comer - Internetworking with TCP/IP Volume 1
http://www.ietf.org/rfc/rfc854.txt ---------------------------------------------------------------------
On 1 Aug 2008, at 11:38, mbm wrote:
Hmm. That's interesting. I'd never known there would be a difference in behaviour between "aptitude install" and "apt-get install". But after your email I tried it and got the following:
aptitude install php5 php5-cgi
I believe aptitude has been the recommended tool to use since etch was released (possibly before) particularly for upgrading between versions.
On Fri, 1 Aug 2008 11:41:42 +0100 David Reynolds david@reynoldsfamily.org.uk allegedly wrote:
I believe aptitude has been the recommended tool to use since etch was released (possibly before) particularly for upgrading between versions.
I've just run a successful upgrade (on a really ropey old Compaq Armada) from etch to lenny using apt-get upgrade and apt-get dist-upgrade. Using aptitude never crossed my mind.
Mick
---------------------------------------------------------------------
The text file for RFC 854 contains exactly 854 lines. Do you think there is any cosmic significance in this?
Douglas E Comer - Internetworking with TCP/IP Volume 1
http://www.ietf.org/rfc/rfc854.txt ---------------------------------------------------------------------
On Fri, Aug 01, 2008 at 12:42:28PM +0100, mbm wrote:
On Fri, 1 Aug 2008 11:41:42 +0100 David Reynolds david@reynoldsfamily.org.uk allegedly wrote:
I believe aptitude has been the recommended tool to use since etch was released (possibly before) particularly for upgrading between versions.
I've just run a successful upgrade (on a really ropey old Compaq Armada) from etch to lenny using apt-get upgrade and apt-get dist-upgrade. Using aptitude never crossed my mind.
Not a reader of release notes then. ;)
J.
On Fri, 1 Aug 2008 12:53:36 +0100 Jonathan McDowell noodles@earth.li allegedly wrote:
I've just run a successful upgrade (on a really ropey old Compaq Armada) from etch to lenny using apt-get upgrade and apt-get dist-upgrade. Using aptitude never crossed my mind.
Not a reader of release notes then. ;)
J.
What's a release note.....
M
---------------------------------------------------------------------
The text file for RFC 854 contains exactly 854 lines. Do you think there is any cosmic significance in this?
Douglas E Comer - Internetworking with TCP/IP Volume 1
http://www.ietf.org/rfc/rfc854.txt ---------------------------------------------------------------------
On 01-Aug-08 12:01:44, mbm wrote:
On Fri, 1 Aug 2008 12:53:36 +0100 Jonathan McDowell noodles@earth.li allegedly wrote:
I've just run a successful upgrade (on a really ropey old Compaq Armada) from etch to lenny using apt-get upgrade and apt-get dist-upgrade. Using aptitude never crossed my mind.
Not a reader of release notes then. ;) J.
What's a release note..... M
It's what the Governor brings to your cell on your last day ... Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 01-Aug-08 Time: 13:15:48 ------------------------------ XFMail ------------------------------