I'm trying to remove some packages that I installed a long time ago but don't need any more, when I type dpkg --get-selection
I get a list of all the packages installed in my system, but I need to sort those packages, like this "the packages needed by the system all together", "packages that can be removed all together".
Is there any command that can sort them for me ??