2

I ran this command sudo dpkg -l *certbot* and I got this certbot and the version number listed in the terminal:

enter image description here

Next I ran this 2 commands sudo apt-get remove certbot and sudo apt autoremove and I though the certbot would be removed. But when I ran again sudo dpkg -l *certbot*, it still not removed and it still show the same as the image above.

How do I completely remove certbot? Thanks

2
  • 1
    Should be as simply as using sudo certbot delete
    – Ramhound
    Commented Mar 24, 2022 at 7:05
  • 2
    Fwiw, just to explain the commands & the resulting output: "remove" gets rid of the program, but not the configuration files (hence "rc"); use "purge" to also delete config files. The packages are uninstalled (ie, removed), but the system still knows they were once installed but nothing else (hence, "un", or "unknown"). Using "purge" and then "clean" will rid the system of all memory of the packages, as far as dpkg/apt is concerned. askubuntu.com/questions/18804/…
    – michael
    Commented Mar 24, 2022 at 7:22

2 Answers 2

2

just run the following command after it

sudo apt purge certbot

Thanks

0

The following command only removes the package itself so you cannot run it anymore:

apt remove certbot

But configuration files are still remained at /etc/

If you intend to remove all existing files, the run:

apt purge certbot

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .