Home > System Tutorial > LINUX > Steps to uninstall software in Ubuntu using dpkg command

Steps to uninstall software in Ubuntu using dpkg command

PHPz
Release: 2024-01-15 17:06:04
forward
2768 people have browsed it

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.

Steps to uninstall software in Ubuntu using dpkg command

2. First list the libreoffice related software and see which ones have been installed. The command is: dpkg -l libreoffice*

Steps to uninstall software in Ubuntu using dpkg command

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.

Steps to uninstall software in Ubuntu using dpkg command

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!

source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template