How to Uninstall a Program in Ubuntu?
Uninstall a program via the command line
You can uninstall the program via the command line using the apt-get
command. To do this, we first open the terminal command line. And in the Terminal:
1 | sudo apt-get remove program_name |
We can remove the program directly from the system by typing it and pressing Enter. We will be asked for the root user password. After entering the password, we will be able to continue processing. And with this command, we will remove the programs and extensions. You will be given a list of packages to be removed. If you think there is a program that you do not want to be removed from your system, you can cancel the process.
If you want the program to be uninstalled with all the configuration files, use the command below:
1 | sudo apt-get purge program_name |
Removing unused program extensions
Once an application has been removed from the system, its extensions may remain behind. You can remove these dependencies with apt-get
as follows:
1 | sudo apt-get autoremove program_name |
Here we are asked for the authorized user password, after entering the program asks no/yes
option to uninstall, we say yes for uninstall.
If it is desired to clear the configuration files of the removed applications
Configuration files may remain in the system after applications are uninstalled. If we want to clean these files, we can use the following command:
1 | dpkg -l |
I hope it was a useful article.