16303

Documentation de Ainsi La Vie

v11.4.3

Sur une plateforme MacOS, l’installation de l’application Certbot se fait à partir du package Homebrew, qui, par ailleurs, maintient l’application à jour. Sur une plateforme Windows 10, la procédure, un peu plus compliquée (non détaillée ici), utilise Linux Subsystem along et Ubuntu à installer depuis le Microsoft Store.

Le processus comprend donc 2 étapes : installation du package Homebrew (si absent), puis installation de l'application Certbot. La mise à jour de Certbot est également prévue.

Installation du package Homebrew


Plus d’information sur Homebrew sont disponibles sur https://brew.sh/. En général, ce package est déjà installé sur la machine. Si ce n'est pas le cas, son installation se fait depuis une fenêtre du terminal par la ligne de commande :

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

export PATH="/opt/homebrew/bin:$PATH

brew update

brew upgrade

Le lancement de la commande doit afficher les informations suivantes :

==> This script will install:

/usr/local/bin/brew

/usr/local/share/doc/homebrew

/usr/local/share/man/man1/brew.1

/usr/local/share/zsh/site-functions/_brew

/usr/local/etc/bash_completion.d/brew

/usr/local/Homebrew

==> The following existing directories will be made group writable:

/usr/local/share/man/man5

/usr/local/share/man/man7

==> The following existing directories will have their owner set to philippe:

/usr/local/share/man/man5

/usr/local/share/man/man7

==> The following new directories will be created:

/usr/local/Caskroom

Press RETURN to continue or any other key to abort

==> /usr/bin/sudo /bin/chmod u+rwx /usr/local/share/man/man5 /usr/local/share/man/man7

Password:

Après saisie du mot de passe administrateur, la fin de l’installation se termine par un message du type :

==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/share/man/man5 /usr/local/share/man/man7

==> /usr/bin/sudo /usr/sbin/chown philippe /usr/local/share/man/man5 /usr/local/share/man/man7

==> /usr/bin/sudo /bin/mkdir -p /usr/local/Caskroom

==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/Caskroom

==> /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions

==> /usr/bin/sudo /usr/sbin/chown tpenner /usr/local/Caskroom

==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/Caskroom

==> Downloading and installing Homebrew...

HEAD is now at f37cd18e1 Merge pull request #7088 from SeekingMeaning/version

Already up-to-date.

==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.

Read the analytics documentation (and how to opt-out) here:

https://docs.brew.sh/Analytics

No analytics data has been sent yet (or will be during this `install` run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:

https://github.com/Homebrew/brew#donations

==> Next steps:

- Run `brew help` to get started

- Further documentation:

https://docs.brew.sh

Installation de l'application Certbot


Une fois Homebrew installé, l’installation de Certbot sur la plateforme MacOS se fait dans une fenêtre du terminal par la ligne de commande :

brew install certbot

L’installation peut prendre plusieurs minutes et peut inclure de nombreuses ressources annexes. L’exécution une seconde fois de la commande affichera un message du type :

Warning: certbot 1.2.0 is already installed and up-to-date To reinstall 1.2.0, run `brew reinstall certbot`

Mise à jour de l’application Certbot


La mise à jour de l’application Certbot se fait également dans une fenêtre du terminal par la ligne de commande :

brew upgrade certbot

Si Certbot est à jour, la commande renvoie un message du type :

Warning: certbot 1.2.0 already installed

Sinon la mise à jour renvoie une information du type :

Updating Homebrew...

==> Auto-updated Homebrew!

Updated 1 tap (homebrew/core).

...

==> Upgrading 1 outdated package:

certbot 1.2.0 -> 1.3.0

==> Upgrading certbot 1.2.0 -> 1.3.0

==> Installing dependencies for certbot: dialog, xz and python@3.8

==> Installing certbot dependency: dialog

...