Let'sEncryptでnginxのプラグインがない

Let'sEncryptでnginxのプラグインがない

パッケージの更新時に何故か certbot が消えていたので

sudo dnf install certbot

で certbot を入れたあと

sudo certbot renew

とすると、下記のようなエラーが発生

Failed to renew certificate xxx.yyy with error: The requested nginx plugin does not appear to be installed

nginx のプラグインがないので下記で入れる

sudo dnf install python-certbot-nginx

python3 の場合は下記

sudo dnf install python3-certbot-nginx