How to uninstall a program or application in Ubuntu from the terminal?

When Ubuntu users consider that an application is not important, they can perform the uninstall process from the terminal. If you want to go through this process, we invite you to read this article where you will learn How to uninstall a program or application in Ubuntu from the terminal?

What is the Ubuntu terminal?

Il Ubuntu terminal is a command interpreter that allows you to execute instructions on the system without the need for a graphical interface. It is also known as the "Shell" and allows users to perform any type of activity in text format.




What is the purpose of the Ubuntu terminal?

The Ubuntu terminal is used to enter i commands that the system executes to execute a series of instructions from an emulator or text mode environment. In this sense, users can install packages or programs in Ubuntu from the terminal and delete them from this path when they deem it necessary.

How does the Ubuntu terminal work?

The Ubuntu terminal works via a command line prompt. At this prompt, users can enter the commands the system needs to follow the instructions and automatically open three interfaces: standard input, standard output and standard error.

<a name=How to uninstall a program or application in Ubuntu from the terminal?" src="/images/posts/b45fbeedaa05afef167e15623a33e4ba-0.jpg">

How to uninstall a program or application in Ubuntu from the terminal?

If you want uninstall a program or an application in Ubuntu from the terminal, you must know a series of commands that will allow you to successfully develop the procedure as we explain below.

Enter the terminal to uninstall a program or application in Ubuntu

To access the Ubuntu terminal you have to press i tasti Ctrl + Alt + T. Immediately, you will see a window where you can enter some text. If you want to modify this resource according to your preferences, you can customize Ubuntu terminal with PowerLine Linux quickly and easily.




You can also access this tool from the Ubuntu icon at the top left of the screen. Type "terminal" in the search bar and click "Terminal".

Open the list of programs or applications installed in Ubuntu

Locate the program list or applications that have been installed in Ubuntu. To achieve this, you need to type dpkg –list and press the "Enter" key. Immediately, you will be able to see the list of all the programs you have installed on your system.

Similarly, you can use the command sudo apt -installed list | more to get the program list easily.

Find the program you want to uninstall

It's time to find the program you want to uninstall from Ubuntu. Separate the actual name of the program to be used in the next step.

<a name=How to uninstall a program or application in Ubuntu from the terminal?" src="/images/posts/b45fbeedaa05afef167e15623a33e4ba-1.jpg">

Use the apt –get command to uninstall a program or application in Ubuntu from the terminal

To uninstall the application from the terminal, you need to enter the following syntax: sudo apt-get remove program_name. Replace the word “program_name” with the actual name of the program you are about to uninstall from Ubuntu.


It is important to note that this command only removes the application but preserves the configuration files and some add-ons. To completely remove the program, enter the following syntax:  sudo apt-get purge program_name. Then press the "Enter" key.

Enter the root password

It is essential to enter the root password which corresponds to the admin user or "Super user" for the system to go through the uninstall process. Then press the "Enter" key


Confirm the uninstall process

To confirm the uninstallation process, type the character "y" (without quotation marks) into the terminal while holding down the "Enter" key. Immediately, the program will start uninstalling. This process takes a time depending on the program package size.


What should I do if I have not been able to uninstall a program or application in Ubuntu from the terminal?

If you were unable to uninstall the application with the apt –get command, you can use this syntax which serves the same purpose: sudo aptitude remove program_name. Replace the word “program_name” with the actual name of the program you are about to uninstall from Ubuntu. Finally, press the "Enter" key. Also, you can choose to repair broken or badly installed packages in Ubuntu from the terminal if you still want to use an application but it has flaws.


TagsLinux
add a comment of How to uninstall a program or application in Ubuntu from the terminal?
Comment sent successfully! We will review it in the next few hours.