in this example, i want to remove boinc, because it takes ages to shutdown during shutdown… can’t wait that long…

in general: aptitude is better at handling dependencies than apt

in general it can work like this:

apt-get –purge autoremove packagename

su; # become root
sudo bash; # become root

dpkg -l|grep boinc; # search for installed package with that name
ii  boinc-client                                      7.4.23+dfsg-1                        i386         core client for the BOINC distributed computing infrastructure
ii  boinc-manager                                     7.4.23+dfsg-1                        i386         GUI to control and monitor the BOINC core client
ii  libboinc7                                         7.4.23+dfsg-1                        i386         libraries of BOINC the client depends on

apt-get --purge autoremove boinc-client boinc-manager; # found two packages now let's remove em

Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages will be REMOVED:
  boinc-client* boinc-manager* libboinc7* libjavascriptcoregtk-1.0-0* libwebkitgtk-1.0-0* libwebkitgtk-1.0-common* libwxgtk-webview3.0-0*
0 upgraded, 0 newly installed, 7 to remove and 182 not upgraded.
After this operation, 50.0 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 174561 files and directories currently installed.)
Removing boinc-manager (7.4.23+dfsg-1) ...
Purging configuration files for boinc-manager (7.4.23+dfsg-1) ...
Removing boinc-client (7.4.23+dfsg-1) ...
Purging configuration files for boinc-client (7.4.23+dfsg-1) ...
Removing user `boinc' ...
Warning: group `boinc'
has no more members.
Done.
Removing libboinc7 (7.4.23+dfsg-1) ...
Purging configuration files for libboinc7 (7.4.23+dfsg-1) ...
Removing libwxgtk-webview3.0-0:i386 (3.0.2-1+b1) ...
Purging configuration files for libwxgtk-webview3.0-0:i386 (3.0.2-1+b1) ...
Removing libwebkitgtk-1.0-0:i386 (2.4.9-1~deb8u1) ...
Purging configuration files for libwebkitgtk-1.0-0:i386 (2.4.9-1~deb8u1) ...
Removing libjavascriptcoregtk-1.0-0:i386 (2.4.9-1~deb8u1) ...
Purging configuration files for libjavascriptcoregtk-1.0-0:i386 (2.4.9-1~deb8u1) ...
Removing libwebkitgtk-1.0-common (2.4.9-1~deb8u1) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Processing triggers for mime-support (3.58) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for menu (2.1.47) ...
Processing triggers for libc-bin (2.19-18+deb8u6) ...

# seems like it has done the job

It’s also important to note that configuration files in your home directory are unaffected by the –purge option. These you will have to remove manually

Links:

https://askubuntu.com/questions/187888/what-is-the-correct-way-to-completely-remove-an-application

admin