How to install certbot on OracleLinux 7.x

## How to install certbot on CentOS 7.x

### OK

- pip install requests[security]
- pip install certbot


### NG
 - yum install certbot
 - certbot renew
    - `pkg_resources.UnknownExtra: requests 2.6.0 has no such extra feature 'security'`
 - ol7_latest: python-requests 2.6.0 does not provide the extra 'security'

---


```
$ pip install requests[security]
Requirement already satisfied: requests[security] in /usr/lib/python2.7/site-packages (2.6.0)
  requests 2.6.0 does not provide the extra 'security'
```


```
$ yum install certbot
Loaded plugins: langpacks, ulninfo
Resolving Dependencies
--> Running transaction check
---> Package certbot.noarch 0:0.27.1-1.el7 will be installed
--> Processing Dependency: python2-certbot = 0.27.1-1.el7 for package: certbot-0.27.1-1.el7.noarch
--> Running transaction check
---> Package python2-certbot.noarch 0:0.27.1-1.el7 will be installed
--> Processing Dependency: python2-acme >= 0.26.0 for package: python2-certbot-0.27.1-1.el7.noarch
--> Running transaction check
---> Package python2-acme.noarch 0:0.27.1-1.el7 will be installed
--> Processing Dependency: python2-requests for package: python2-acme-0.27.1-1.el7.noarch
--> Processing Dependency: python-requests-toolbelt for package: python2-acme-0.27.1-1.el7.noarch
--> Running transaction check
---> Package python-requests-toolbelt.noarch 0:0.8.0-1.el7 will be installed
--> Processing Dependency: python-requests for package: python-requests-toolbelt-0.8.0-1.el7.noarch
---> Package python2-requests.noarch 0:2.6.0-0.el7 will be installed
--> Running transaction check
---> Package python-requests.noarch 0:2.6.0-1.el7_1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================
 Package                                        Arch                         Version                             Repository                        Size
========================================================================================================================================================
Installing:
 certbot                                        noarch                       0.27.1-1.el7                        epel                              21 k
Installing for dependencies:
 python-requests                                noarch                       2.6.0-1.el7_1                       ol7_latest                        93 k
 python-requests-toolbelt                       noarch                       0.8.0-1.el7                         epel                              77 k
 python2-acme                                   noarch                       0.27.1-1.el7                        epel                             141 k
 python2-certbot                                noarch                       0.27.1-1.el7                        epel                             519 k
 python2-requests                               noarch                       2.6.0-0.el7                         epel                             2.9 k

Transaction Summary
========================================================================================================================================================
Install  1 Package (+5 Dependent packages)

Total download size: 854 k
Installed size: 3.7 M
Is this ok [y/d/N]: y
Downloading packages:
(1/6): certbot-0.27.1-1.el7.noarch.rpm                                                                                           |  21 kB  00:00:00     
(2/6): python-requests-toolbelt-0.8.0-1.el7.noarch.rpm                                                                           |  77 kB  00:00:00     
(3/6): python2-acme-0.27.1-1.el7.noarch.rpm                                                                                      | 141 kB  00:00:00     
(4/6): python2-certbot-0.27.1-1.el7.noarch.rpm                                                                                   | 519 kB  00:00:00     
(5/6): python2-requests-2.6.0-0.el7.noarch.rpm                                                                                   | 2.9 kB  00:00:00     
(6/6): python-requests-2.6.0-1.el7_1.noarch.rpm                                                                                  |  93 kB  00:00:00     
--------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                   917 kB/s | 854 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python-requests-2.6.0-1.el7_1.noarch                                                                                                 1/6 
  Installing : python2-requests-2.6.0-0.el7.noarch                                                                                                  2/6 
  Installing : python-requests-toolbelt-0.8.0-1.el7.noarch                                                                                          3/6 
  Installing : python2-acme-0.27.1-1.el7.noarch                                                                                                     4/6 
  Installing : python2-certbot-0.27.1-1.el7.noarch                                                                                                  5/6 
  Installing : certbot-0.27.1-1.el7.noarch                                                                                                          6/6 
libsemanage.semanage_read_policydb: Could not open kernel policy /etc/selinux/minimum/active/policy.kern for reading. (No such file or directory).
OSError: No such file or directory
  Verifying  : python2-requests-2.6.0-0.el7.noarch                                                                                                  1/6 
  Verifying  : python-requests-2.6.0-1.el7_1.noarch                                                                                                 2/6 
  Verifying  : python2-certbot-0.27.1-1.el7.noarch                                                                                                  3/6 
  Verifying  : python-requests-toolbelt-0.8.0-1.el7.noarch                                                                                          4/6 
  Verifying  : python2-acme-0.27.1-1.el7.noarch                                                                                                     5/6 
  Verifying  : certbot-0.27.1-1.el7.noarch                                                                                                          6/6 

Installed:
  certbot.noarch 0:0.27.1-1.el7                                                                                                                         

Dependency Installed:
  python-requests.noarch 0:2.6.0-1.el7_1           python-requests-toolbelt.noarch 0:0.8.0-1.el7           python2-acme.noarch 0:0.27.1-1.el7          
  python2-certbot.noarch 0:0.27.1-1.el7            python2-requests.noarch 0:2.6.0-0.el7                  

Complete!
```