Ubuntu – dpkg: How to remove a package and all other packages depend on it


I tried to remove KDE from my system.
When I run ' dpkg -r kdebase-bin', it says 'kdebase-data' depends on it. So how can I remove all the packages related to KDE?

Best Answer

Usually one uses a higher-level utility instead of dpkg. You can use apt-get to remove a package and all its dependencies.

apt-get remove <package>
Related Question