DPKG delete configurations of already deleted packages

From EN Ikoula wiki
Revision as of 14:45, 29 July 2021 by Ikbot (talk | contribs)
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽

zh:DPKG 删除已经删除的软件包的配置 de:DPKG löscht Konfigurationen von bereits gelöschten Paketen nl:DPKG verwijdert configuraties van reeds verwijderde pakketten it:DPKG elimina le configurazioni di pacchetti già eliminati pt:DPKG apagar configurações de pacotes já eliminados es:DPKG borrar configuraciones de paquetes ya borrados fr:DPKG supprimer les configurations de paquets déjà supprimés
This article has been created by an automatic translation software. You can view the article source here.

Introduction

We will see how to list and delete configuration files that have already been deleted.

Course

Let's list the packages where the packages have already been removed but the configuration files have not, in our example three :

$ dpkg -l | grep ^rc
rc  docutils-common                0.14+dfsg-4                  all          text processing system for reStructuredText - common data
rc  linux-image-4.19.0-5-amd64     4.19.37-5+deb10u2            amd64        Linux 4.19 for 64-bit PCs (signed)
rc  unzip                          6.0-23+deb10u1               amd64        De-archiver for .zip files


Then let's force a purge via apt of these packages:

$ dpkg -l | grep ^rc | awk '{print $2}' | xargs -t sudo apt-get -y purge


You can then check with dpkg, the packages will no longer be present.


Conclusion

A short summary of what has been achieved and to go further



Cet article vous a semblé utile ?

0



You are not allowed to post comments.