-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pip instructions #698
Add pip instructions #698
Changes from 12 commits
6777d34
e18fde4
e133999
61ee800
b9d27ab
48705aa
15f8bf5
7ea8434
1489304
d8b2b32
fea8794
9166b43
d9bacf2
1f57af6
3170bab
a6205f5
f753f9f
2d6f6ce
bb002f2
3b891c3
f53d1d1
1b8f049
c7a13e8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,8 @@ <h3>Partial support</h3> | |
<li> | ||
Install system dependencies | ||
|
||
<p>System dependencies may include Python 3.6+, including venv (this might be called <code>python3-dev</code>, | ||
<code>python3-devel</code>, or <code>python3-venv</code>) and Augeas for the Apache | ||
<p>System dependencies may include Python 3.6+, including venv (this might be called <code>python3</code>, | ||
<code>python3</code>, or <code>python3-venv</code>) and Augeas for the Apache | ||
plugin (<code>libaugeas0</code> or <code>augeaslibs</code>).</p> | ||
|
||
<p>If you're having trouble installing cryptography, you may need to install additional | ||
|
@@ -23,21 +23,43 @@ <h3>Partial support</h3> | |
the cryptography project's site</a> for more infoformation.</p> | ||
|
||
<p>Commands to install system dependencies may look like the following, run on the command | ||
line on the machine: | ||
<pre class="no-before"><ol><li># For APT-based distributions (e.g. Debian, Ubuntu ...)</li> | ||
line on the machine.</p> | ||
<p>For APT-based distributions (e.g. Debian, Ubuntu ...): | ||
<pre class="no-before"><ol> | ||
<li>sudo apt update</li> | ||
<li>sudo apt install python3-dev python3-venv libaugeas0</li> | ||
<li># For RPM-based distributions (e.g. Fedora, CentOS ...)</li> | ||
<li># NB1: old distributions will use yum instead of dnf</li> | ||
<li># NB2: RHEL-based distributions use python3X-devel instead of python3-devel (e.g. python36-devel)</li> | ||
<li>sudo dnf install python3-devel augeas-libs redhat-rpm-config</li></ol></pre> | ||
<li>sudo apt install python3 python3-venv libaugeas0</li> | ||
</ol></pre> | ||
</p> | ||
<p>For RPM-based distributions (e.g. Fedora, CentOS ...): | ||
<br>NB1: old distributions will use yum instead of dnf | ||
<br>NB2: RHEL-based distributions use <code>python3X</code> instead of <code>python3</code> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: I personally think this "NB#: ..." text from https://certbot.eff.org/docs/contributing.html#running-a-local-copy-of-the-client looks kind of sloppy here. If you agree, can we reformat this maybe as a note with more or less complete sentences? If you disagree, feel free to leave it as is. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree, will give it a try. |
||
(e.g. <code>python36</code>) | ||
<pre class="no-before"><ol> | ||
<li>sudo dnf install python3 augeas-libs</li></ol></pre> | ||
</p> | ||
|
||
<p>These packages may have slightly different names on other distributions; a search such as | ||
"augeas on <your_system_name>" will probably yield helpful results.</p> | ||
</li> | ||
<li> | ||
Set up a venv | ||
Remove certbot-auto and any Certbot OS packages | ||
<p> | ||
If you have any Certbot packages installed using an OS package manager like | ||
<code>apt</code>, <code>dnf</code>, or <code>yum</code>, you should remove them before | ||
installing the Certbot snap to ensure that when you run the command | ||
<code>certbot</code> the snap is used rather than the installation from your OS | ||
package manager. The exact command to do this depends on your OS, but | ||
common examples are <code>sudo apt-get remove certbot</code>, <code>sudo dnf | ||
remove certbot</code>, or <code>sudo yum remove certbot</code>. | ||
</p> | ||
<p> | ||
If you previously used Certbot through the certbot-auto script, you should | ||
also remove its installation by following the instructions <a | ||
href="/docs/uninstall.html">here</a>. | ||
</p> | ||
</li> | ||
<li> | ||
Set up a Python virtual environment | ||
<p> | ||
Execute the following instructions on the command line on the machine to set up a virtual | ||
environment. | ||
|
@@ -51,16 +73,6 @@ <h3>Partial support</h3> | |
{{> installcertbot}} | ||
ohemorange marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{{>preparecertbotsymlinkcommand}} | ||
|
||
<li> | ||
[Optional] Install any custom third-party plugins | ||
<p> | ||
If you use third-party plugins not created by the Certbot team, you can install them by | ||
executing the following command on the command line on the machine. | ||
<pre class="no-before"><ol> | ||
<li>{{install_command}} <other-plugins></li></ol></pre> | ||
</p> | ||
</li> | ||
|
||
|
||
{{#advanced}} | ||
{{#dns_plugins}} | ||
|
@@ -69,13 +81,3 @@ <h3>Partial support</h3> | |
|
||
{{> dnspluginssetup}} | ||
|
||
<li> | ||
[Optional] Upgrade certbot | ||
<p>When you're ready to upgrade certbot, run the following command on the command line on the machine. | ||
<pre class="no-before"><ol> | ||
<li>{{install_command}} --upgrade {{package}}</li></ol></pre> | ||
</p> | ||
|
||
<p>If this step leads to errors, run <code>rm -rf /opt/certbot</code> and repeat all installation instructions.</p> | ||
<p>For automatic upgrades, the command in this step can be run by a monthly cron job.</p> | ||
</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I personally think we should delete this sentence. In our top level discussion, we decided not to give people the command to do this since we're not sure it's reliable enough. If we have concerns about it, I don't think we should suggest it at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed.