I have apache2.service enlisted in the output of systemd-analyze critical-chain
, taking more than 5.5 seconds!
Why is apache2 even installed on my system when I am not running a web server?
Response to Tomasz Gandor
Thanks, Tomasz. Here is the output response:
$ aptitude why apache2
i phpliteadmin-themes Depends phpliteadmin
i A phpliteadmin Recommends apache2 (>= 2.4.6-4~) | httpd
And I think it's just a theme, so it would be safe to remove it. Should I?
Response to PerlDuck
Thanks, PerlDuck. Here is the output response:
$ apt-cache rdepends --installed apache2
apache2
Reverse Depends:
libapache2-mod-php7.2
|phpliteadmin
|javascript-common
libapache2-mod-php7.2
Now, I am not very much certain about what to do!
Also, there is one thing to be noted in the response of apt-cache rdepends
, and that is the | sign before phpliteadmin
and javascript-common
. What does this indicate?
And why is libapache2-mod-php7.2
listed twice in the output, once at the top and once at the bottom of the list?
If you don't have aptitude run:
then:
This will list packages. If you find any packages preceded by "
i
" and not "i A
", that's why you have apache2.As a follow-up to @TomaszGandor's answer: in case
aptitude
is not istalled butapt-cache
is (which I think is by default), another possibility is:This will list all installed packages that depend on
apache2
.