How to uninstall in Linux command?

Answered by Tom Adger

Uninstalling an application in Linux can be done using different commands depending on the Linux distribution you are using. In this answer, I will provide instructions for some popular Linux distributions.

1. Debian/Ubuntu:
– If you are using Debian or Ubuntu, you can use the `apt` command to uninstall an application. Open a terminal and type the following command:
“`
Sudo apt remove “`
Replace `` with the name of the application you want to uninstall. For example, if you want to uninstall the Firefox web browser, the command would be:
“`
Sudo apt remove firefox
“`

2. RHEL/CentOS/Fedora:
– If you are using RHEL, CentOS, or Fedora, you can use either the `dnf` or `yum` command to uninstall an application. Open a terminal and type one of the following commands:
“`
Sudo dnf remove “`
Or
“`
Sudo yum remove “`
Replace `` with the name of the application you want to uninstall. For example, to uninstall the GIMP image editor, the command would be:
“`
Sudo dnf remove gimp
“`

3. Arch Linux/Manjaro:
– If you are using Arch Linux or Manjaro, you can use the `pacman` command to uninstall an application. Open a terminal and type the following command:
“`
Sudo pacman -R “`
Replace `` with the name of the application you want to uninstall. For example, to uninstall the VLC media player, the command would be:
“`
Sudo pacman -R vlc
“`

4. SUSE/openSUSE:
– If you are using SUSE or openSUSE, you can use the `zypper` command to uninstall an application. Open a terminal and type the following command:
“`
Sudo zypper remove “`
Replace `` with the name of the application you want to uninstall. For example, to uninstall the LibreOffice suite, the command would be:
“`
Sudo zypper remove libreoffice
“`

After running the appropriate command, you may be prompted to confirm the uninstallation. Enter ‘y’ or ‘yes’ to proceed. The command will then remove the specified application from your system.

To verify the uninstallation of an application, you can use the following commands:

– Debian/Ubuntu:
“`
Dpkg -l | grep “`

– RHEL/CentOS/Fedora:
“`
Rpm -qa | grep “`

– Arch Linux/Manjaro:
“`
Pacman -Q | grep “`

– SUSE/openSUSE:
“`
Zypper se -i “`

Replace `` with the name of the application you uninstalled. If the application is no longer listed after running these commands, it means that the uninstallation was successful.

Remember to use the appropriate commands based on your Linux distribution to ensure a successful uninstallation.