According to the encyclopedia description, Ubuntu is a Linux system based on Debian, and the Debian system software is managed using APT and dpkg. dpkg is the abbreviation of "Debian Packager" and is a low-level software package management tool. What the editor is going to show you below is how to use the dpkg command to uninstall software in Ubuntu. Let’s take a look!
This experience takes uninstalling the office software libreoffice under Ubuntu as an example to demonstrate how to use dpkg to uninstall the software.
View installed software
1. Check the help of dpkg.
Select dpkg -l to view the status of the software.
Select dpkg -P to uninstall the software. Because dpkg --remove only deletes installed files, but does not delete configuration files. dpkg --purge deletes both installation files and configuration files.
2. First list the libreoffice related software and see which ones have been installed. The command is: dpkg -l libreoffice*
3, Among them, un, ii, rc, etc. are Desired and Status
Desired=Unknown/Install/Remove/Purge/Hold
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
ii means the installed software, rc means it has been deleted, but the configuration file still exists.
4, Select the libreoffice-base-core package to demonstrate uninstallation
Uninstall the installed software
1. Use the command dpkg -P libreoffice-base-core to uninstall, as shown in the figure.
The above is the detailed content of Steps to uninstall software in Ubuntu using dpkg command. For more information, please follow other related articles on the PHP Chinese website!