diff options
author | Thomas Kriechbaumer <Kriechi@users.noreply.github.com> | 2017-09-04 09:51:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-04 09:51:44 +0200 |
commit | 96854cff528ebc9ef2576b3d55f712f28626ff84 (patch) | |
tree | b38e99de313ca4a189fd99d93a46bbba38668ac2 | |
parent | 1b05e7c9530e90d00f8f9e7037cb7c90d17535d1 (diff) | |
parent | f9d4d5f19cdbbbd0c78e642750014263e100445b (diff) | |
download | mitmproxy-96854cff528ebc9ef2576b3d55f712f28626ff84.tar.gz mitmproxy-96854cff528ebc9ef2576b3d55f712f28626ff84.tar.bz2 mitmproxy-96854cff528ebc9ef2576b3d55f712f28626ff84.zip |
Merge pull request #2558 from Kriechi/linux-docs
update installation docs
-rw-r--r-- | docs/install.rst | 157 |
1 files changed, 75 insertions, 82 deletions
diff --git a/docs/install.rst b/docs/install.rst index 6f166c8a..235e7c09 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -14,130 +14,125 @@ Once installation is complete, you can run :ref:`mitmproxy`, :ref:`mitmdump` or Installation on macOS --------------------- -You can use Homebrew to install everything: +The recommended way to install mitmproxy on macOS is to use `Homebrew`_: .. code:: bash brew install mitmproxy -Or you can download the pre-built binary packages from our `releases`_. +Alternatively you can download our :ref:`binary-packages` from our `releases`_ +page. -.. _install-windows: - -Installation on Windows ------------------------ - -The recommended way to install mitmproxy on Windows is to use the installer -provided at `mitmproxy.org`_. After installation, you'll find shortcuts for -:ref:`mitmweb` (the web-based interface) and :ref:`mitmdump` in the start menu. -Both executables are added to your PATH and can be invoked from the command -line. - -.. note:: - Mitmproxy's console interface is not supported on Windows, but you can use - mitmweb (the web-based interface) and mitmdump. - .. _install-linux: Installation on Linux --------------------- -The recommended way to run mitmproxy on Linux is to use the pre-built binaries -provided at `releases`_. +The recommended way to install mitmproxy on Linux is to download our +:ref:`binary-packages` from our `releases`_ page. -Our pre-built binaries provide you with the latest version of mitmproxy, a -self-contained Python 3.5 environment and a recent version of OpenSSL that -supports HTTP/2. Of course, you can also install mitmproxy from source if you -prefer that (see :ref:`install-advanced`). +Some Linux distributions and their community provide mitmproxy packages via +their native package repositories (e.g., Arch Linux, Debian, Ubuntu, Kali Linux, +OpenSUSE, etc.). While we do encourage seeing mitmproxy in a great variety of +repositories and distributions, we are not maintaining or involved with their +downstream packaging efforts. If you are looking for the latest version or have +other problems, please contact the repository maintainers directly. -.. _install-advanced: -Advanced Installation ---------------------- +.. _install-windows: -.. _install-docker: +Installation on Windows +----------------------- -Docker Images -^^^^^^^^^^^^^ +The recommended way to install mitmproxy on Windows is to download our +:ref:`binary-packages` from our `releases`_ page. -You can also use the official mitmproxy images from `DockerHub`_. That being -said, our portable binaries are just as easy to install and even easier to use. 😊 +After installation, you'll find shortcuts for :ref:`mitmweb` (the web-based +interface) and :ref:`mitmdump` in the start menu. Both executables are added to +your PATH and can be invoked from the command line. +.. note:: + The console interface is not supported on Windows, but you can + use `mitmweb` (the web-based interface) and `mitmdump`. -.. _install-arch: -Installation on Arch Linux -^^^^^^^^^^^^^^^^^^^^^^^^^^ +.. _install-advanced: + +Advanced Installation +--------------------- -mitmproxy has been added into the [community] repository. Use pacman to install it: +.. _binary-packages: ->>> sudo pacman -S mitmproxy +Self-contained Pre-built Binary Packages +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +For some platforms we provide pre-built binary packages containing ready-to-run +executables. This includes a self-contained Python 3 environment, a recent +OpenSSL that support ALPN and HTTP/2, and other dependencies that would +otherwise we cumbersome to compile and install. -.. _install-source-ubuntu: +Please be advised that we do not updates these binaries after the initial +release. This means we do not include security-related updates of our +dependencies in already released mitmproxy versions. If there is a severe issue, +we might consider releasing a bugfix release of mitmproxy and corresponding +binary packages. -Installation from Source on Ubuntu -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +We only support the latest version of mitmproxy with bugfix and security updates +through regular minor releases. -Ubuntu comes with Python but we need to install pip3, python3-dev and several -libraries. This was tested on a fully patched installation of Ubuntu 16.04. -.. code:: bash +.. _install-docker: - sudo apt-get install python3-pip - sudo pip3 install mitmproxy +Docker Images +^^^^^^^^^^^^^ -On older Ubuntu versions, e.g., **12.04** and **14.04**, you may need to install -a newer version of Python. mitmproxy requires Python 3.5 or higher. Please take -a look at pyenv_. Make sure to have an up-to-date version of pip by running -``pip3 install -U pip``. +You can use the official mitmproxy images from `DockerHub`_. The same security +considerations apply as for our binary packages. -.. _install-source-fedora: +.. _install-linux-pip3: -Installation from Source on Fedora -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +Installation on Linux via pip3 +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -Fedora comes with Python but we need to install pip3, python3-dev and several -libraries. This was tested on a fully patched installation of Fedora 24. +Please make sure to install Python 3.5 (or higher) and pip3 for your +distribtion. If your distribution does not provide a suitable Python version, +you can use `pyenv`_ to get a recent Python environment. .. code:: bash - sudo dnf install python3-pip - sudo pip3 install mitmproxy - -Make sure to have an up-to-date version of pip by running ``pip3 install -U pip``. + sudo apt install python3-pip # Debian 8 or higher, Ubuntu 16.04 or higher + sudo dnf install python3-pip # Fedora 24 or higher + sudo pacman -S python-pip # Arch Linux +Please make sure to upgrade pip3 itself: -.. _install-source-opensuse: +.. code:: bash -Installation from Source on openSUSE -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + sudo pip3 install -U pip -This was tested on a fully patched installation of openSUSE Tumbleweed. -Please note that openSUSE Leap 42.2 only comes with Python 3.4.x, whereas mitmproxy requires Python 3.5 or above. -You can check you Python version by running ``python3 --version``. +Now you can install mitmproxy via pip3: .. code:: bash - sudo zypper install python3-pip - sudo pip3 install mitmproxy + sudo pip3 install mitmproxy -.. _install-source-windows: +.. _install-windows-pip3: -Installation from Source on Windows -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +Installation on Windows via pip3 +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. note:: - Mitmproxy's console interface is not supported on Windows, but you can use - mitmweb (the web-based interface) and mitmdump. + The console interface is not supported on Windows, but you can + use `mitmweb` (the web-based interface) and `mitmdump`. -First, install the latest version of Python 3.5 or later from the `Python -website`_. During installation, make sure to select `Add Python to PATH`. +First, install the latest version of Python 3.5 or higher from the `Python +website`_. During installation, make sure to select `Add Python to PATH`. There +are no other dependencies on Windows. -Mitmproxy has no other dependencies on Windows. You can now install mitmproxy by running +Now you can install mitmproxy via pip3: .. code:: powershell @@ -145,22 +140,20 @@ Mitmproxy has no other dependencies on Windows. You can now install mitmproxy by -.. _install-dev-version: +.. _install-from-source: -Latest Development Version -^^^^^^^^^^^^^^^^^^^^^^^^^^ +Installation from Source Code +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -If you would like to install mitmproxy directly from the master branch on GitHub -or would like to get set up to contribute to the project, install the -dependencies as you would for a regular installation from source. Then see the -project's README_ on GitHub. You can check your system information -by running: ``mitmproxy --version`` +If you would like to install mitmproxy directly from source code or the GitHub +master branch, please see the our README_ on GitHub. .. _README: https://github.com/mitmproxy/mitmproxy/blob/master/README.rst -.. _releases: https://github.com/mitmproxy/mitmproxy/releases +.. _releases: https://github.com/mitmproxy/mitmproxy/releases/latest .. _mitmproxy.org: https://mitmproxy.org/ .. _`Python website`: https://www.python.org/downloads/windows/ .. _pip: https://pip.pypa.io/en/latest/installing.html .. _pyenv: https://github.com/yyuu/pyenv .. _DockerHub: https://hub.docker.com/r/mitmproxy/mitmproxy/ +.. _Homebrew: https://brew.sh/ |