How to completely remove a package or an application using Terminal on Ubuntu/Linux machine?
Use the commands autoremove and remove a package or an application on a Ubuntu/Linux machine.
- Command
autoremoveto remove a package or an application, along with its installed dependencies and associated configuration files. - Command
removeto remove a package or an application, without removing its dependencies.
Use the below command to remove a package or an application, along with the dependent packages installed with it, and its associated configuration files.
sudo apt-get --purge autoremove packagename
Use the below command to simply remove a package, without removing the dependent packages installed with it.
sudo apt-get remove packagename