-3

how can I clear complete package traces in ubuntu devices? I am trying to uninstall a package from golang binary. After uninstall when I do dpkg -l /apt-cache still I am getting package name and configuration files information. Is it possible to remove those traces or uninstall the package using shell script by running script from package maintainer scripts?

Somesh
  • 1
  • 2
    dpkg -l queries the dpkg database, which includes all known packages, including all uninstalled packages. It's supposed to keep track of uninstalled packages. – user535733 Apr 02 '20 at 17:43
  • I know that please read the question once for a better understanding. – Somesh Apr 02 '20 at 17:46
  • Did you remove the package(s) or purge them? the former doesn't remove configuration files (so for example dpkg -l may show something like rc) – steeldriver Apr 02 '20 at 17:46
  • 1
    yes it is showing pc and it was not existing that state. When I run again manually dpkg -P command from terminal then traces are clearing. – Somesh Apr 02 '20 at 17:48

1 Answers1

0

Looks like you used remove, which leaves the config files in place.

If you use purge, it will also remove the config files.

Neither option will remove data or config files in your /home. You must remove those manually, if any.

user535733
  • 62,253