14.04 phpmyadmin php5 dependency

Asked by rob

14.04 phpmyadmin specifically depends on php5/php5-fpm, is this intentional? I have php5.6/php5.6-fpm running with nginx, but aptitude is forcing php5/libapache2-php5 etc.

--no-install-recommends removes the "Recommended" dependency on apache2, but my preference is not to clutter my installation with extra versions of php/apache.

Trying to remove the installed apache afterwards is also no use, because apt remove aggressively removes packages whose dependencies would be wiped.

Just apache forces installation of php5-cgi:
   apt-get remove apache2 --purge

Removing apache and all php5 packages forces removal of phpmyadmin
  apt-get remove apache2 --purge php5-*

I have installed php5.6 from the following PPA:
    pkgs_repo_add ppa:ondrej/php

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu phpmyadmin Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

The control file of php5.6 from ppa:ondrej/php contains "Provides: php". This should allow installing it as a replacement for the standard php package.

If there is something not working as you expect, then please contact the provider of the PPA. It's in his responsibility.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Why do you want to use phpmyadmin? What are you going to be doing on the system using it?

Revision history for this message
rob (rdenney) said :
#3

"Provides: php"

Unfortunately, Manfred, phpmyadmin doesn't have a dependency on "php" which would allow packages with different names to fill that requirement. It specifically depends on php5, I believe this is because the 14.04 repositories do not contain an entry for "php", only specific versions.

"Why do you want to use phpmyadmin?"

actionparsnip, this is the kind of response that deters people from asking questions in the first place. Manfred had useful input on the content of my question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

Sorry, it seems that I did not look close enough to see the difference between a "php" and a "php5" dependency.

In this case there is not much that can be done except:

1. find another version of phpmyadmin that has its dependency formulated in a way that php5.6 from ppa:ondrej/php fulfills the dependency
  or
2. find another version of php (or php5.6 or similar) with its "provides" formulated in a way, that it satisfies the dependencies of phpmyadmin
  or eventually
3. upgrade to a higher Ubuntu release (e.g. 16.04 LTS) with the hope that the packages in that release do not exhibit the same dependency problem (eventually with certain PPAs added).

You could ask Ondrej Sury if there is a possibility to change his php5.6 package that it not only "Provides: php" but also "Provides: php5".

Can you help with this problem?

Provide an answer of your own, or ask rob for more information if necessary.

To post a message you must log in.