I am in the process of upgrading to Debian Bullseye.
When doing apt full-upgrade
I see that apache2 is going to be installed.
I do not want apache on my system, I have nginx already running.
How can I prevent this?
Is it safe to do apt-mark hold apache2, apt-mark hold apache2-bin, etc.
and then do the upgrade?
Update:
Ok, from the Bullseye Release Notes I learned that "It is desirable to remove any holds before upgrading."
And when I do apt -o Debug::pkgDepCache::AutoInstall=1 -sV full-upgrade
I get the following:
[...]
Installing php7.4 as Hängt ab von of php
Installing libapache2-mod-php7.4 as Hängt ab von of php7.4
Installing php7.4-cli as Hängt ab von of libapache2-mod-php7.4
Installing php7.4-json as Hängt ab von of php7.4-cli
Installing php7.4-opcache as Hängt ab von of php7.4-cli
Installing php7.4-readline as Hängt ab von of php7.4-cli
Installing [b]apache2-bin[/b] as Hängt ab von of [b]libapache2-mod-php7.4[/b]
Installing libapr1 as Hängt ab von of apache2-bin
Installing libaprutil1 as Hängt ab von of apache2-bin
Installing libaprutil1-dbd-sqlite3 as Hängt ab von of apache2-bin
Installing libaprutil1-ldap as Hängt ab von of apache2-bin
Installing libjansson4 as Hängt ab von of apache2-bin
Installing [b]apache2 as Empfiehlt of libapache2-mod-php7.4[/b]
Installing apache2-data as Hängt ab von of apache2
Installing apache2-utils as Hängt ab von of apache2
[...]
(sorry for the stupid german language snippets, "Hängt ab von" means depends, "Empfiehlt" means recommends)
When I add --no-install-recommends it gives:
Installing php7.4 as Hängt ab von of php
Installing libapache2-mod-php7.4 as Hängt ab von of php7.4
Installing php7.4-cli as Hängt ab von of libapache2-mod-php7.4
Installing php7.4-json as Hängt ab von of php7.4-cli
Installing php7.4-opcache as Hängt ab von of php7.4-cli
Installing php7.4-readline as Hängt ab von of php7.4-cli
Installing apache2-bin as Hängt ab von of libapache2-mod-php7.4
Installing libapr1 as Hängt ab von of apache2-bin
Installing libaprutil1 as Hängt ab von of apache2-bin
Installing libaprutil1-dbd-sqlite3 as Hängt ab von of apache2-bin
Installing libaprutil1-ldap as Hängt ab von of apache2-bin
Installing libjansson4 as Hängt ab von of apache2-bin
So adding --no-install-recommends, I could live with that, only having package apache2-bin lying around there.
But how the hell can php(7.4) recommend a full apache to be installed while having nginx already on the system??? (nginx was installed via standard repo and will be going to be updated when doing the full-upgrade)