How to Completely Remove the Apache Server Package 2.4.39v on Ubuntu 19.04
To Completely remove the Apache server package 2.4.39v On Ubuntu 19.04
Check the status of the Apache server.
root@linuxhelp:~# systemctl status apache2
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2019-05-28 15:18:21 IST; 2h 55min ago
Docs: https://httpd.apache.org/docs/2.4/
Delete the apache2 package using purge command as follows.
root@linuxhelp:~# apt purge "apache2*" -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'apache2-ssl-dev' for glob 'apache2*'
Note, selecting 'apache2.2-common' for glob 'apache2*'
Note, selecting 'apache2-suexec-pristine' for glob 'apache2*'
Note, selecting 'apache2-api-20120211' for glob 'apache2*'
Note, selecting 'apache2-data' for glob 'apache2*'
Note, selecting 'apache2-api-20120211-openssl1.1' for glob 'apache2*'
Note, selecting 'apache2-suexec' for glob 'apache2*'
Note, selecting 'apache2-bin' for glob 'apache2*'
Note, selecting 'apache2.2-bin' for glob 'apache2*'
Note, selecting 'apache2-dev' for glob 'apache2*'
Note, selecting 'apache2-doc' for glob 'apache2*'
Note, selecting 'apache2-suexec-custom' for glob 'apache2*'
Note, selecting 'apache2' for glob 'apache2*'
Note, selecting 'apache2-utils' for glob 'apache2*'
Note, selecting 'apache2-mpm-itk' for glob 'apache2*'
Package 'apache2.2-bin' is not installed, so not removed
Package 'apache2.2-common' is not installed, so not removed
Note, selecting 'apache2-bin' instead of 'apache2-api-20120211'
Note, selecting 'apache2-bin' instead of 'apache2-api-20120211-openssl1.1'
Package 'apache2-mpm-itk' is not installed, so not removed
Package 'apache2-dev' is not installed, so not removed
Package 'apache2-doc' is not installed, so not removed
Package 'apache2-ssl-dev' is not installed, so not removed
Package 'apache2-suexec-custom' is not installed, so not removed
Package 'apache2-suexec-pristine' is not installed, so not removed
The following packages were automatically installed and are no longer required:
libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.2-0
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
php7.2-fpm
The following packages will be REMOVED:
apache2* apache2-bin* apache2-data* apache2-utils* libapache2-mod-php7.2*
The following NEW packages will be installed:
php7.2-fpm
0 upgraded, 1 newly installed, 5 to remove and 93 not upgraded.
Need to get 1,451 kB of archives.
After this operation, 6,482 kB disk space will be freed.
Get:1 http://in.archive.ubuntu.com/ubuntu disco-updates/universe amd64 php7.2-fpm amd64 7.2.17-0ubuntu0.19.04.1 [1,451 kB]
Fetched 1,451 kB in 7s (208 kB/s)
(Reading database ... 145621 files and directories currently installed.)
Removing apache2 (2.4.38-2ubuntu2) ...
Selecting previously unselected package php7.2-fpm.
(Reading database ... 145572 files and directories currently installed.)
Preparing to unpack .../php7.2-fpm_7.2.17-0ubuntu0.19.04.1_amd64.deb ...
Unpacking php7.2-fpm (7.2.17-0ubuntu0.19.04.1) ...
(Reading database ... 145594 files and directories currently installed.)
Removing apache2-data (2.4.38-2ubuntu2) ...
Removing apache2-utils (2.4.38-2ubuntu2) ...
dpkg: apache2-bin: dependency problems, but removing anyway as you requested:
libapache2-mod-php7.2 depends on apache2-api-20120211; however:
Package apache2-api-20120211 is not installed.
Package apache2-bin which provides apache2-api-20120211 is to be removed.
libapache2-mod-php7.2 depends on apache2-bin (>= 2.4.16); however:
Package apache2-bin is to be removed.
libapache2-mod-php7.2 depends on apache2-api-20120211; however:
Package apache2-api-20120211 is not installed.
Package apache2-bin which provides apache2-api-20120211 is to be removed.
libapache2-mod-php7.2 depends on apache2-bin (>= 2.4.16); however:
Package apache2-bin is to be removed.
Removing apache2-bin (2.4.38-2ubuntu2) ...
dpkg: warning: while removing apache2-bin, directory '/var/lib/apache2' not empty so not removed
dpkg: libapache2-mod-php7.2: dependency problems, but removing anyway as you requested:
php7.2 depends on libapache2-mod-php7.2 | php7.2-fpm | php7.2-cgi; however:
Package libapache2-mod-php7.2 is to be removed.
Package php7.2-fpm is not configured yet.
Package php7.2-cgi is not installed.
Removing libapache2-mod-php7.2 (7.2.17-0ubuntu0.19.04.1) ...
Setting up php7.2-fpm (7.2.17-0ubuntu0.19.04.1) ...
Creating config file /etc/php/7.2/fpm/php.ini with new version.
Created symlink /etc/systemd/system/multi-user.target.wants/php7.2-fpm.service → /lib/systemd/system/php7.2-fpm.service.
Processing triggers for systemd (240-6ubuntu5) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for ufw (0.36-1ubuntu1) ...
(Reading database ... 145134 files and directories currently installed.)
Purging configuration files for apache2 (2.4.38-2ubuntu2) ...
dpkg: warning: while removing apache2, directory '/var/www' not empty so not removed
dpkg: warning: while removing apache2, directory '/etc/apache2/sites-available' not empty so not removed
Purging configuration files for libapache2-mod-php7.2 (7.2.17-0ubuntu0.19.04.1) ...
Processing triggers for systemd (240-6ubuntu5) ...
Processing triggers for ufw (0.36-1ubuntu1) ...
Delete it dependencies installed by executing the autoremove command.
root@linuxhelp:~# apt autoremove -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.2-0
0 upgraded, 0 newly installed, 5 to remove and 93 not upgraded.
After this operation, 1,079 kB disk space will be freed.
(Reading database ... 144966 files and directories currently installed.)
Removing libaprutil1-dbd-sqlite3:amd64 (1.6.1-3build1) ...
Removing libaprutil1-ldap:amd64 (1.6.1-3build1) ...
Removing libaprutil1:amd64 (1.6.1-3build1) ...
Removing libapr1:amd64 (1.6.5-1) ...
Removing liblua5.2-0:amd64 (5.2.4-1.1build2) ...
Processing triggers for libc-bin (2.29-0ubuntu2) ...
Check the status of Apache server.
root@linuxhelp:~# systemctl status apache2
Unit apache2.service could not be found.
With this, the method to completely delete Apache2 server package on Ubuntu 19.04 comes to end.
Comments ( 0 )
No comments available