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:

gns3_remove
gns3_remove

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:

gns3_purge
gns3_purge

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:

gns3_autoremove
gns3_autoremove

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:

dpkg -l
dpkg -l

I hope it was a useful article.