Get the App
SLTechnology News&Howtos  ›  Servers  › 

Related commands for Ubuntu to completely uninstall the software

Shulou Source: shulou.com Published: 2022-06-01 10:41:32 10月03日 Update

This article mainly explains "Ubuntu complete uninstall software related commands", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor to take you to learn "Ubuntu complete uninstall software-related commands" it!

Commands related to software viewing information

1. View the installed software

Dpkg-l # View all installed software dpkg-l | grep xxx # View the specified software installed. Xxx is the name of the software, such as nginx.

2. Check the software version

Dpkg-l | grep xxx # xxx is the software name, such as nginx

3. View the path of software installation

Dpkg-L | grep xxx # xxx is the software name, such as nginx

Commands related to uninstalling the software

1. Uninstall the specified software and its configuration files

Sudo apt-get-- purge remove xxx # xxx is the name of the software, such as nginx

2. List the specified related software

Dpkg-- get-selections | grep xxx # xxx is the software name, such as nginx

3. Delete the related file names listed

Sudo apt-get-purge remove xxx # xxx indicates the name of the related file listed

4. View the software processes being executed

Ps-ef | grep xxx # xxx is the software name, such as nginx

5. Kill the process being executed

Kill-9 xxx # xxx indicates the process No. Zhengzhou STD Hospital http://www.120zhongyuanyy.com/

6. Find out the files related to the software globally

Find /-name xxx* # xxx is the software name, such as nginx

7. Delete and find the software related to nginx in turn

Rm-rf xxx # xxx indicates the file path

8. Automatically remove all unused software packages (that is, those packages that are related to the installation of one software, but are not used later)

Sudo apt-get autoremove

At this point, I believe you have a deeper understanding of "Ubuntu complete uninstall software related commands", might as well come to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Software name command file process content file name current path software package learning practical deeper no specialist information global interest hospital practicality Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Microsoft vpn MariaDB NVidia