Certbot - Install Certbot using snapd
by
Jeremy Canfield |
Updated: July 28 2023
| Certbot articles
This assumes you have already installed snapd.
Some distribution include certbot. Let's use apt-get remove, dnf remove or yum remove to remove certbot if it was include with your distribution.
dnf remove certbot
To include classic certbot, there must be a symbolic link between /var/lib/snapd/snap and /snap.
ln -s /var/lib/snapd/snap /snap
Install classic certbot using snap.
snap install --classic certbot
The snap list command should now include certbot.
~]# snap list
Name Version Rev Tracking Publisher Notes
certbot 2.6.0 3024 latest/stable certbot-eff✓ classic
core 16-2.59.5 15511 latest/stable canonical✓ core
core20 20230622 1974 latest/stable canonical✓ bas
Create a symbolic link between /snap/bin/certbot and /usr/bin/certbot so that just the "certbot" command can be used.
ln -s /snap/bin/certbot /usr/bin/certbot
The certbot --version command can be used to verify that the certbot command is working.
~]$ certbot --version
certbot 2.6.0
Did you find this article helpful?
If so, consider buying me a coffee over at