I installed a package by mistake and immediately removed (purged it to be exact) it, but other than the package itself, none of the dependencies that installed alongside was removed. I do not know if it's required or not, but if no, I would like to remove them.
man apt-get provides information that the parameter
So, you could use
Additional source: Ubuntugeek
If apt-get's autoremove doesn't help, you can run this (needs
This will list all packages which aptitude can find no reason why they are installed (but you maybe installed them manually).
|show 1 more comment|