Apt

List packages

dpkg --list

Remove package

sudo apt-get purge <packagename>

Remove package along with dependencies that are installed with those packages

sudo apt-get purge --auto-remove <packagename>

Remove unused dependencies

sudo apt-get autoremove

Clean packages

sudo apt-get clean