Linux Delete and Uninstall Software Command

https:/‮ww/‬w.lautturi.com
Linux Delete and Uninstall Software Command

There are several ways to delete and uninstall software on a Linux system, depending on how the software was installed.

If you installed the software using a package manager, such as apt on Debian or Ubuntu systems or yum on CentOS or Red Hat systems, you can use the package manager to uninstall the software.

For example, to uninstall a package named "package1" using apt, you can use the following command:

$ sudo apt-get remove package1

This will remove the package, but it will leave behind any configuration files or data that was created by the package. To remove the package and all of its configuration files and data, you can use the purge option instead:

$ sudo apt-get purge package1

On CentOS or Red Hat systems, you can use the yum command to uninstall a package. For example:

$ sudo yum remove package1

This will remove the package and its dependencies, but it will leave behind any configuration files or data that was created by the package.

If you installed the software using a binary package, such as a .deb or .rpm file, you can use the dpkg or rpm command to uninstall the software. For example, to uninstall a .deb file named "package1.deb", you can use the following command:

$ sudo dpkg -r package1

To uninstall a .rpm file named "package1.rpm", you can use the following command:

$ sudo rpm -e package1

Note that these commands will only remove the software and its files, but they may not remove any configuration files or data that was created by the package.

If you installed the software manually by compiling it from source code, you can delete the software by deleting the files and directories that were created during the installation process. However, this may not remove any configuration files or data that was created by the software.

In general, it is best to use a package manager or the appropriate command (dpkg or rpm) to delete and uninstall software on a Linux system, as this ensures that all necessary files and dependencies are properly removed.

Created Time:2017-10-29 22:08:53  Author:lautturi