
Hi Luvers, how do I override suggested dependencies using apt-get which conflicts with already installed software that provides equivalent functionalities? For example: If I install phpmyadmin usign apt-get, it will also install apache2, and if I already have say nginx installed, it will remove it, and replace it with apache. But I want to keep nginx. How do I get apt-get to install phpmyadmin while keeping nginx? Thanks Daniel

Hi Daniel, If your OS is the same as Ubuntu, apache2 is actually only a "recommended" dependency of phpmyadmin, and you can install phpmyadmin without apache2 by running apt-get --no-install-recommends install phpmyadmin Sean On 15 May 2015 at 14:09, Daniel Jitnah <djitnah@greenwareit.com.au> wrote:
Hi Luvers,
how do I override suggested dependencies using apt-get which conflicts with already installed software that provides equivalent functionalities?
For example:
If I install phpmyadmin usign apt-get, it will also install apache2, and if I already have say nginx installed, it will remove it, and replace it with apache. But I want to keep nginx.
How do I get apt-get to install phpmyadmin while keeping nginx?
Thanks Daniel
_______________________________________________ luv-main mailing list luv-main@luv.asn.au http://lists.luv.asn.au/listinfo/luv-main

On 15/05/15 14:17, Sean Crosby wrote:
Hi Daniel,
If your OS is the same as Ubuntu, apache2 is actually only a "recommended" dependency of phpmyadmin, and you can install phpmyadmin without apache2 by running
Yes its Ubuntu, but phpmyadmin depends on libapache2-mod-php5, and libapache2-mod-php5 depends on apache2-common. Daniel.
apt-get --no-install-recommends install phpmyadmin
Sean
On 15 May 2015 at 14:09, Daniel Jitnah <djitnah@greenwareit.com.au <mailto:djitnah@greenwareit.com.au>> wrote:
Hi Luvers,
how do I override suggested dependencies using apt-get which conflicts with already installed software that provides equivalent functionalities?
For example:
If I install phpmyadmin usign apt-get, it will also install apache2, and if I already have say nginx installed, it will remove it, and replace it with apache. But I want to keep nginx.
How do I get apt-get to install phpmyadmin while keeping nginx?
Thanks Daniel
_______________________________________________ luv-main mailing list luv-main@luv.asn.au <mailto:luv-main@luv.asn.au> http://lists.luv.asn.au/listinfo/luv-main

On 15 May 2015 at 19:14, Daniel Jitnah <djitnah@greenwareit.com.au> wrote:
On 15/05/15 14:17, Sean Crosby wrote:
Hi Daniel,
If your OS is the same as Ubuntu, apache2 is actually only a "recommended" dependency of phpmyadmin, and you can install phpmyadmin without apache2 by running
Yes its Ubuntu, but phpmyadmin depends on libapache2-mod-php5, and libapache2-mod-php5 depends on apache2-common.
On 14.04, the package requires root@astrotest:~# apt-cache show phpmyadmin Package: phpmyadmin Priority: extra Section: universe/web Installed-Size: 22468 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Original-Maintainer: Thijs Kinkhorst <thijs@debian.org> Architecture: all Version: 4:4.0.10-1 Depends: libapache2-mod-php5 | libapache2-mod-php5filter | php5-cgi | php5-fpm | php5, php5-mysql | php5-mysqli | php5-mysqlnd, php5-mcrypt, php5-json, perl, debconf (>= 0.5) | debconf-2.0, dbconfig-common, fonts-dejavu-core | ttf-dejavu-core, php-gettext, libjs-jquery, libjs-jquery-ui, libjs-jquery-cookie, libjs-jquery-mousewheel, libjs-jquery-event-drag, libjs-jquery-tablesorter, libjs-codemirror, libjs-underscore, ucf (>= 0.28) Recommends: apache2 | lighttpd | httpd, php5-gd, mysql-client Suggests: mysql-server, www-browser I assume given you will run nginx, you have/will use php5-fpm So to not install the apache2 packages, this seems to do it root@astrotest:~# apt-get --no-install-recommends install phpmyadmin php5-fpm Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: dbconfig-common libjs-codemirror libjs-jquery-cookie libjs-jquery-event-drag libjs-jquery-metadata libjs-jquery-mousewheel libjs-jquery-tablesorter libjs-jquery-ui libjs-underscore libmcrypt4 php-gettext php5-mcrypt php5-mysql Suggested packages: libjs-jquery-ui-docs libmcrypt-dev mcrypt php-pear mysql-server Recommended packages: javascript-common apache2 lighttpd httpd php5-gd The following NEW packages will be installed: dbconfig-common libjs-codemirror libjs-jquery-cookie libjs-jquery-event-drag libjs-jquery-metadata libjs-jquery-mousewheel libjs-jquery-tablesorter libjs-jquery-ui libjs-underscore libmcrypt4 php-gettext php5-fpm php5-mcrypt php5-mysql phpmyadmin 0 to upgrade, 15 to newly install, 0 to remove and 31 not to upgrade. Need to get 7,849 kB of archives. After this operation, 37.9 MB of additional disk space will be used. Sean
Daniel.
apt-get --no-install-recommends install phpmyadmin
Sean
On 15 May 2015 at 14:09, Daniel Jitnah <djitnah@greenwareit.com.au <mailto:djitnah@greenwareit.com.au>> wrote:
Hi Luvers,
how do I override suggested dependencies using apt-get which
conflicts
with already installed software that provides equivalent functionalities?
For example:
If I install phpmyadmin usign apt-get, it will also install apache2,
and
if I already have say nginx installed, it will remove it, and
replace it
with apache. But I want to keep nginx.
How do I get apt-get to install phpmyadmin while keeping nginx?
Thanks Daniel
_______________________________________________ luv-main mailing list luv-main@luv.asn.au <mailto:luv-main@luv.asn.au> http://lists.luv.asn.au/listinfo/luv-main

On 15 May 2015 at 14:09, Daniel Jitnah <djitnah@greenwareit.com.au <mailto:djitnah@greenwareit.com.au>> wrote:
Hi Luvers,
how do I override suggested dependencies using apt-get which
conflicts
with already installed software that provides equivalent functionalities?
For example:
If I install phpmyadmin usign apt-get, it will also install
apache2, and
if I already have say nginx installed, it will remove it, and
replace it
with apache. But I want to keep nginx.
How do I get apt-get to install phpmyadmin while keeping nginx?
In general however, you can just add a - to the end of a package you don't want to install. e.g. root@astrotest:~# apt-get install phpmyadmin Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: apache2 apache2-bin apache2-data dbconfig-common javascript-common libapache2-mod-php5 libaprutil1-dbd-sqlite3 libaprutil1-ldap libjs-codemirror libjs-jquery-cookie libjs-jquery-event-drag libjs-jquery-metadata libjs-jquery-mousewheel libjs-jquery-tablesorter libjs-jquery-ui libjs-underscore libmcrypt4 php-gettext php5-gd php5-mcrypt php5-mysql Suggested packages: apache2-doc apache2-suexec-pristine apache2-suexec-custom apache2-utils php-pear libjs-jquery-ui-docs libmcrypt-dev mcrypt mysql-server The following NEW packages will be installed: apache2 apache2-bin apache2-data dbconfig-common javascript-common libapache2-mod-php5 libaprutil1-dbd-sqlite3 libaprutil1-ldap libjs-codemirror libjs-jquery-cookie libjs-jquery-event-drag libjs-jquery-metadata libjs-jquery-mousewheel libjs-jquery-tablesorter libjs-jquery-ui libjs-underscore libmcrypt4 php-gettext php5-gd php5-mcrypt php5-mysql phpmyadmin 0 to upgrade, 22 to newly install, 0 to remove and 31 not to upgrade. Need to get 9,010 kB of archives. After this operation, 43.5 MB of additional disk space will be used. Do you want to continue? [Y/n] ^C root@astrotest:~# apt-get install phpmyadmin apache2- apache2-bin- Reading package lists... Done Building dependency tree Reading state information... Done Package 'apache2' is not installed, so not removed Package 'apache2-bin' is not installed, so not removed The following extra packages will be installed: dbconfig-common javascript-common libjs-codemirror libjs-jquery-cookie libjs-jquery-event-drag libjs-jquery-metadata libjs-jquery-mousewheel libjs-jquery-tablesorter libjs-jquery-ui libjs-underscore libmcrypt4 php-gettext php5-cgi php5-gd php5-mcrypt php5-mysql Suggested packages: libjs-jquery-ui-docs libmcrypt-dev mcrypt php-pear mysql-server The following NEW packages will be installed: dbconfig-common javascript-common libjs-codemirror libjs-jquery-cookie libjs-jquery-event-drag libjs-jquery-metadata libjs-jquery-mousewheel libjs-jquery-tablesorter libjs-jquery-ui libjs-underscore libmcrypt4 php-gettext php5-cgi php5-gd php5-mcrypt php5-mysql phpmyadmin 0 to upgrade, 17 to newly install, 0 to remove and 31 not to upgrade. Need to get 9,973 kB of archives. After this operation, 47.1 MB of additional disk space will be used. Do you want to continue? [Y/n] ^C Sean
Thanks Daniel
_______________________________________________ luv-main mailing list luv-main@luv.asn.au <mailto:luv-main@luv.asn.au> http://lists.luv.asn.au/listinfo/luv-main

Quoting Daniel Jitnah (djitnah@greenwareit.com.au):
How do I get apt-get to install phpmyadmin while keeping nginx?
Lateral suggestion: Perhaps you would consider Adminer (http://www.adminer.org)? I find it vastly preferable to that bloated, slow, security-problem-plagued phpmyadmin thing. -- Cheers, C.S. Lewis fan: "I'd like to visit Narnia." Rick Moen Tolkien fan: "I'd like to live in Middle-Earth." rick@linuxmafia.com George R.R. Martin fan: "Nope, I'm good." McQ! (4x80)
participants (3)
-
Daniel Jitnah
-
Rick Moen
-
Sean Crosby