2014-11-26 20:56:08 +01:00
Installing qutebrowser
======================
2017-05-29 21:14:01 +02:00
toc::[]
2017-09-18 09:10:32 +02:00
NOTE: qutebrowser recently had some bigger dependency changes for v1.0.0, which
means those instructions might be out of date in some places.
https://github.com/qutebrowser/qutebrowser/blob/master/doc/contributing.asciidoc[Please help]
updating them if you notice something being broken!
2014-11-13 07:47:45 +01:00
On Debian / Ubuntu
2014-11-26 20:56:08 +01:00
------------------
2014-11-13 07:47:45 +01:00
2017-09-18 09:10:32 +02:00
How to install qutebrowser depends a lot on the version of Debian/Ubuntu you're
running.
Debian Jessie / Ubuntu 14.04 LTS / Linux Mint < 18
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2017-09-18 09:41:12 +02:00
Those distributions only have Python 3.4 and a too old Qt version available,
while qutebrowser requires Python 3.5 and Qt 5.7.1 or newer.
2017-09-18 09:10:32 +02:00
It should be possible to install Python 3.5 e.g. from the
2017-12-14 08:59:54 +01:00
https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa[deadsnakes PPA] or via
2017-09-18 09:10:32 +02:00
https://github.com/pyenv/pyenv[pyenv], but nobody tried that yet.
2014-11-13 07:47:45 +01:00
2017-09-18 09:10:32 +02:00
If you get qutebrowser running on those distributions, please
https://github.com/qutebrowser/qutebrowser/blob/master/doc/contributing.asciidoc[contribute]
to update this documentation!
2014-11-13 07:47:45 +01:00
2017-09-18 09:10:32 +02:00
Ubuntu 16.04 LTS / Linux Mint 18
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2016-05-02 20:50:03 +02:00
2017-09-18 09:10:32 +02:00
Ubuntu 16.04 doesn't come with an up-to-date engine (a new enough QtWebKit, or
QtWebEngine). However, it comes with Python 3.5, so you can
<<tox,install qutebrowser via tox>>.
2016-05-02 20:50:03 +02:00
2018-03-02 10:22:59 +01:00
You'll need some basic libraries to use the tox-installed PyQt:
----
# apt install libglib2.0-0 libgl1 libfontconfig1 libx11-xcb1 libxi6 libxrender1 libdbus-1-3
----
2017-12-05 09:36:14 +01:00
Debian Stretch / Ubuntu 17.04 and 17.10
2017-09-18 09:10:32 +02:00
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2017-05-30 15:32:29 +02:00
2017-09-18 09:10:32 +02:00
Those versions come with QtWebEngine in the repositories. This makes it possible
to install qutebrowser via the Debian package.
2016-05-02 20:50:03 +02:00
2018-03-21 10:54:21 +01:00
You'll need to download three packages:
2017-10-17 12:03:27 +02:00
2018-03-21 10:54:21 +01:00
- https://packages.debian.org/sid/all/python3-pypeg2/download[PyPEG2] (a library
used by qutebrowser which is not in the earlier repositories)
- https://packages.debian.org/sid/all/qutebrowser/download[qutebrowser] itself
- Either https://packages.debian.org/sid/all/qutebrowser-qtwebengine/download[qutebrowser-qtwebengine]
or https://packages.debian.org/sid/all/qutebrowser-qtwebkit/download[qutebrowser-qtwebkit]
(or both) depending on the backend you want to use. QtWebEngine is the
default/recommended choice.
2018-05-20 19:44:02 +02:00
After downloading, install the packages (make sure to install all the
downloaded qutebrowser deb files in one apt command):
2016-05-02 20:50:03 +02:00
2016-05-02 21:38:35 +02:00
----
2017-10-17 12:03:27 +02:00
# apt install ./python3-pypeg2_*_all.deb
2018-03-21 10:54:21 +01:00
# apt install ./qutebrowser*.deb
2016-05-02 21:38:35 +02:00
----
2016-05-02 20:50:03 +02:00
2018-03-21 10:54:21 +01:00
For an update after the initial install, you only need to download/install the
qutebrowser package.
2017-12-05 09:36:14 +01:00
Debian Testing / Ubuntu 18.04
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On Debian Testing, qutebrowser is in the official repositories, and you can
install it with apt:
----
# apt install qutebrowser
----
Additional hints
~~~~~~~~~~~~~~~~
2014-11-13 07:47:45 +01:00
2017-09-18 09:10:32 +02:00
- Alternatively, you can <<tox,install qutebrowser via tox>> to get a newer
QtWebEngine version.
- If running from git, run the following to generate the documentation for the
`:help` command:
+
2014-11-13 07:47:45 +01:00
----
2017-10-17 12:03:27 +02:00
# apt install --no-install-recommends asciidoc source-highlight
2015-03-26 19:12:52 +01:00
$ python3 scripts/asciidoc2html.py
2014-11-13 07:47:45 +01:00
----
2017-09-18 09:10:32 +02:00
- If you prefer using QtWebKit, there's an up-to-date version available in
2017-12-14 08:59:54 +01:00
https://packages.debian.org/buster/libqt5webkit5[Debian Testing].
2017-09-18 09:10:32 +02:00
- If video or sound don't work with QtWebKit, try installing the gstreamer plugins:
+
2016-03-24 14:25:46 +01:00
----
2017-10-17 12:03:27 +02:00
# apt install gstreamer1.0-plugins-{bad,base,good,ugly}
2016-03-24 14:25:46 +01:00
----
2015-07-15 12:30:23 +02:00
On Fedora
2015-07-17 06:55:03 +02:00
---------
2015-07-15 12:30:23 +02:00
2017-11-28 17:56:17 +01:00
NOTE: Fedora's packages used to be outdated for a long time, but are
now (November 2017) maintained and up-to-date again.
2015-07-15 12:30:23 +02:00
2017-11-28 17:56:17 +01:00
qutebrowser is available in the official repositories:
-----
# dnf install qutebrowser
-----
However, note that Fedora 25/26 won't be updated to qutebrowser v1.0, so you
might want to <<tox,install qutebrowser via tox>> instead there.
2017-05-30 15:32:29 +02:00
2017-12-12 15:53:17 +01:00
Additional hints
~~~~~~~~~~~~~~~~
Fedora only ships free software in the repositories.
To be able to play videos with proprietary codecs with QtWebEngine, you will
need to install an additional package from the RPM Fusion Free repository.
For more information see https://rpmfusion.org/Configuration.
-----
# dnf install qt5-qtwebengine-freeworld
-----
2014-11-13 07:47:45 +01:00
On Archlinux
2014-11-26 20:56:08 +01:00
------------
2014-11-13 07:47:45 +01:00
2016-01-22 19:47:01 +01:00
qutebrowser is available in the official [community] repository.
----
# pacman -S qutebrowser
----
There is also a -git version available in the AUR:
2014-12-14 18:35:50 +01:00
https://aur.archlinux.org/packages/qutebrowser-git/[qutebrowser-git].
2014-11-13 07:47:45 +01:00
2016-01-22 19:47:01 +01:00
You can install it using `makepkg` like this:
2014-11-13 07:47:45 +01:00
----
2016-01-22 19:47:01 +01:00
$ git clone https://aur.archlinux.org/qutebrowser-git.git
$ cd qutebrowser-git
2014-11-13 07:47:45 +01:00
$ makepkg -si
2015-05-11 22:23:03 +02:00
$ cd ..
2016-01-22 19:47:01 +01:00
$ rm -r qutebrowser-git
2014-11-13 07:47:45 +01:00
----
or you could use an AUR helper, e.g. `yaourt -S qutebrowser-git`.
2017-09-18 09:10:32 +02:00
If video or sound don't work with QtWebKit, try installing the gstreamer plugins:
2016-03-29 18:47:54 +02:00
----
# pacman -S gst-plugins-{base,good,bad,ugly} gst-libav
----
2014-11-13 07:47:45 +01:00
On Gentoo
2014-11-26 20:56:08 +01:00
---------
2014-11-13 07:47:45 +01:00
2017-10-26 21:38:37 +02:00
NOTE: Gentoo's packages used to be severely outdated for a long time, but are
now (October 2017) maintained and up-to-date again.
2017-04-02 10:36:11 +02:00
2017-10-26 21:38:37 +02:00
qutebrowser is available in the main repository and can be installed with:
2017-04-02 10:36:11 +02:00
2017-10-26 21:38:37 +02:00
----
# emerge -av qutebrowser
----
To use QtWebKit instead of QtWebEngine, you'll need a newer QtWebKit using
2017-09-18 21:15:14 +02:00
https://gist.github.com/annulen/309569fb61e5d64a703c055c1e726f71[this ebuild].
2017-05-30 15:32:29 +02:00
2017-09-18 21:15:14 +02:00
If video or sound don't work with QtWebKit, try installing the gstreamer
plugins:
2016-06-05 12:21:34 +02:00
----
# emerge -av gst-plugins-{base,good,bad,ugly,libav}
----
2017-09-04 15:03:04 +02:00
To be able to play videos with proprietary codecs with QtWebEngine, you will
need to turn off the `bindist` flag for `dev-qt/qtwebengine`.
See the https://wiki.gentoo.org/wiki/Qutebrowser#USE_flags[Gentoo Wiki] for
more information.
2015-01-18 23:32:50 +01:00
On Void Linux
-------------
qutebrowser is available in the official repositories and can be installed
with:
----
# xbps-install qutebrowser
----
2017-06-01 19:30:32 +02:00
It's currently recommended to install `python3-PyQt5-webengine` and
`python3-PyQt5-opengl`, then start with `--backend webengine` to use the new
backend.
2017-05-30 15:32:29 +02:00
2017-10-12 09:10:41 +02:00
Since the v1.0 release, qutebrowser uses QtWebEngine by default.
2015-06-29 20:16:27 +02:00
On NixOS
2015-06-29 18:03:45 +02:00
--------
Nixpkgs collection contains `pkgs.qutebrowser` since June 2015. You can install
it with:
----
$ nix-env -i qutebrowser
----
2017-05-30 15:32:29 +02:00
It's recommended to install `qt5.qtwebengine` and start with
`--backend webengine` to use the new backend.
2017-10-12 09:10:41 +02:00
Since the v1.0 release, qutebrowser uses QtWebEngine by default.
2016-03-28 14:40:35 +02:00
On openSUSE
-----------
2017-08-13 19:56:17 +02:00
There are prebuilt RPMs available at https://software.opensuse.org/download.html?project=network&package=qutebrowser[OBS].
2016-03-28 14:40:35 +02:00
2017-09-18 21:15:14 +02:00
To use the QtWebEngine backend, install `libqt5-qtwebengine`.
2018-08-09 19:46:01 +02:00
On Slackware
------------
qutebrowser is available in the 3rd party repository at http://slackbuilds.org[slackbuilds.org]
An easy way to install it is with sbopkg (frontend for slackbuilds.org) available at http://sbopkg.org[sbopkg.org]
sbopkg can be run with a dialog screen interface, or via command line options.
After installing the latest sbopkg package, choose your release version, and sync the repo.
----
sbopkg -V 14.2
sbopkg -r
----
The pyPEG2 and MarkupSafe dependencies both need building for python3. You can either set PYTHON3=yes in the shell or set those as options in the dialog menu for each.
Generate a queue file for qutebrowser and dependencies:
----
sqg -p qutebrowser
----
Then load the queue in the dialog queue menu or via:
----
2018-08-09 19:52:15 +02:00
PYTHON3=yes sbopkg -i qutebrowser
2018-08-09 19:46:01 +02:00
----
If you use the dialog screen you can deselect any already-installed packages that you don't need/want to rebuild before starting the build process.
2016-08-21 15:16:13 +02:00
On OpenBSD
----------
2017-11-28 17:56:17 +01:00
WARNING: OpenBSD only packages a legacy unmaintained version of QtWebKit (for
which support was dropped in qutebrowser v1.0). It's advised to not use
qutebrowser from OpenBSD ports for untrusted websites.
2016-08-21 15:16:13 +02:00
qutebrowser is in http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/www/qutebrowser/[OpenBSD ports].
2017-04-14 18:37:41 +02:00
Install the package:
2016-08-21 15:16:13 +02:00
----
2017-04-14 18:37:41 +02:00
# pkg_add qutebrowser
2016-08-21 15:16:13 +02:00
----
2017-04-14 18:37:41 +02:00
Or alternatively, use the ports system :
2016-08-21 22:16:28 +02:00
----
2017-04-14 18:37:41 +02:00
# cd /usr/ports/www/qutebrowser
# make install
2016-08-21 22:16:28 +02:00
----
2017-11-19 11:30:32 +01:00
On FreeBSD
----------
qutebrowser is in https://www.freshports.org/www/qutebrowser/[FreeBSD ports].
It can be installed with:
----
# cd /usr/ports/www/qutebrowser
# make install clean
----
At present, precompiled packages are not available for this port,
and QtWebEngine backend is also not available.
2014-11-13 07:47:45 +01:00
On Windows
2014-11-26 20:56:08 +01:00
----------
2014-11-13 07:47:45 +01:00
2016-01-13 23:50:02 +01:00
There are different ways to install qutebrowser on Windows:
2016-01-15 07:53:01 +01:00
Prebuilt binaries
~~~~~~~~~~~~~~~~~
2016-01-13 23:50:02 +01:00
2017-05-30 15:32:29 +02:00
Prebuilt standalone packages and installers
2017-02-05 00:13:11 +01:00
https://github.com/qutebrowser/qutebrowser/releases[are built] for every
2016-01-15 07:53:01 +01:00
release.
2017-10-06 14:25:46 +02:00
Note that you'll need to upgrade to new versions manually (subscribe to the
https://lists.schokokeks.org/mailman/listinfo.cgi/qutebrowser-announce[qutebrowser-announce
mailinglist] to get notified on new releases). You can install a newer version
without uninstalling the older one.
2017-10-15 12:25:57 +02:00
The binary release ships with a QtWebEngine built without proprietary codec
support. To get support for e.g. h264/h265 videos, you'll need to build
QtWebEngine from source yourself with support for that enabled.
2016-01-15 07:53:01 +01:00
https://chocolatey.org/packages/qutebrowser[Chocolatey package]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2016-01-13 23:19:51 +01:00
2016-01-13 23:51:21 +01:00
* PackageManagement PowerShell module
2016-01-13 23:19:51 +01:00
----
PS C:\> Install-Package qutebrowser
----
2016-01-13 23:51:21 +01:00
* Chocolatey's client
2016-01-13 23:19:51 +01:00
----
C:\> choco install qutebrowser
----
2018-02-18 09:07:02 +01:00
* Scoop's client
----
C:\> scoop bucket add extras
C:\> scoop install qutebrowser
----
2016-01-13 23:19:51 +01:00
2016-01-13 23:50:02 +01:00
Manual install
2016-01-15 07:53:01 +01:00
~~~~~~~~~~~~~~
2014-11-13 07:47:45 +01:00
2014-12-14 18:35:50 +01:00
* Use the installer from http://www.python.org/downloads[python.org] to get
Python 3 (be sure to install pip).
2015-03-26 08:14:31 +01:00
* Install https://testrun.org/tox/latest/index.html[tox] via
https://pip.pypa.io/en/latest/[pip]:
2014-12-14 18:35:50 +01:00
2015-03-26 08:14:31 +01:00
----
$ pip install tox
----
2015-07-17 06:55:03 +02:00
Then <<tox,install qutebrowser via tox>>.
2015-03-26 19:12:52 +01:00
2017-07-08 11:12:43 +02:00
On macOS
--------
2014-11-13 07:47:45 +01:00
2016-08-01 23:46:06 +02:00
Prebuilt binary
~~~~~~~~~~~~~~~
2017-07-08 11:12:43 +02:00
The easiest way to install qutebrowser on macOS is to use the prebuilt `.app`
2016-07-25 19:41:29 +02:00
files from the
2017-02-05 00:13:11 +01:00
https://github.com/qutebrowser/qutebrowser/releases[release page].
2016-07-25 19:41:29 +02:00
2017-10-06 14:25:46 +02:00
Note that you'll need to upgrade to new versions manually (subscribe to the
https://lists.schokokeks.org/mailman/listinfo.cgi/qutebrowser-announce[qutebrowser-announce
mailinglist] to get notified on new releases).
2017-10-15 12:25:57 +02:00
The binary release ships with a QtWebEngine built without proprietary codec
support. To get support for e.g. h264/h265 videos, you'll need to build
QtWebEngine from source yourself with support for that enabled.
2016-08-01 23:46:06 +02:00
This binary is also available through the
https://caskroom.github.io/[Homebrew Cask] package manager:
----
$ brew cask install qutebrowser
----
Manual Install
~~~~~~~~~~~~~~
2016-07-25 19:41:29 +02:00
Alternatively, you can install the dependencies via a package manager (like
http://brew.sh/[Homebrew] or https://www.macports.org/[MacPorts]) and run
qutebrowser from source.
2016-04-07 07:10:05 +02:00
2016-08-01 23:46:06 +02:00
==== Homebrew
2014-12-18 00:00:59 +01:00
----
2017-02-21 06:46:31 +01:00
$ brew install qt5
$ pip3 install qutebrowser
2014-12-18 00:00:59 +01:00
----
2017-10-12 09:10:41 +02:00
Since the v1.0 release, qutebrowser uses QtWebEngine by default.
2017-10-05 15:36:26 +02:00
Homebrew's builds of Qt and PyQt don't come with QtWebKit (and `--with-qtwebkit`
uses an old version of QtWebKit which qutebrowser doesn't support anymore). If
you want QtWebKit support, you'll need to build an up-to-date QtWebKit
https://github.com/annulen/webkit/wiki/Building-QtWebKit-on-OS-X[manually].
2014-12-05 17:49:24 +01:00
Packagers
---------
There are example .desktop and icon files provided. They would go in the
2014-12-14 18:35:50 +01:00
standard location for your distro (`/usr/share/applications` and
`/usr/share/pixmaps` for example).
2014-12-05 17:49:24 +01:00
The normal `setup.py install` doesn't install these files, so you'll have to do
2014-12-14 18:35:50 +01:00
it as part of the packaging process.
2015-03-26 19:12:52 +01:00
2015-07-17 06:55:03 +02:00
[[tox]]
Installing qutebrowser with tox
-------------------------------
2017-09-19 07:57:49 +02:00
Getting the repository
~~~~~~~~~~~~~~~~~~~~~~
2016-03-26 14:36:42 +01:00
First of all, clone the repository using http://git-scm.org/[git] and switch
into the repository folder:
----
2017-02-05 00:13:11 +01:00
$ git clone https://github.com/qutebrowser/qutebrowser.git
2016-03-26 14:36:42 +01:00
$ cd qutebrowser
----
2018-06-09 21:54:32 +02:00
Installing dependencies (including Qt)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2016-03-26 14:36:42 +01:00
Then run tox inside the qutebrowser repository to set up a
2015-07-17 06:55:03 +02:00
https://docs.python.org/3/library/venv.html[virtual environment]:
----
2017-05-30 15:32:29 +02:00
$ tox -e mkvenv-pypi
2015-07-17 06:55:03 +02:00
----
2017-09-19 07:57:49 +02:00
This installs all needed Python dependencies in a `.venv` subfolder.
This comes with an up-to-date Qt/PyQt including QtWebEngine, but has a few
caveats:
- Make sure your `python3` is Python 3.5 or newer, otherwise you'll get a "No
matching distribution found" error. Note that qutebrowser itself also requires
this.
- It only works on 64-bit x86 systems, with other architectures you'll get the
same error.
- If your distribution uses OpenSSL 1.1 (like Debian Stretch or Archlinux),
you'll need to set `LD_LIBRARY_PATH` to the OpenSSL 1.0 directory
(`export LD_LIBRARY_PATH=/usr/lib/openssl-1.0` on Archlinux) before starting
qutebrowser if you want SSL to work in certain downloads (e.g. for
`:adblock-update` or `:download`).
2018-08-23 17:36:21 +02:00
* On Ubuntu (tested on 18.04), you will need to install the `libssl1.0.0`
package (`apt install libssl1.0.0`). Then, in the qutebrowser git
repository, create a directory named `libssl` (`mkdir libssl`), and link
`libcrypto.so.1.0.0` and `libssl.so.1.0.0` into it without the versioning
part in their names (`ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
libssl/libcrypto.so` and `ln -s /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
libssl/libssl.so`). Now you can start qutebrowser issuing `export
LD_LIBRARY_PATH=$(pwd)/libssl` beforehand.
2017-09-19 07:57:49 +02:00
- It comes with a QtWebEngine compiled without proprietary codec support (such
as h.264).
See the next section for an alternative.
Installing dependencies (system-wide Qt)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2017-06-02 21:52:53 +02:00
2017-05-30 15:32:29 +02:00
Alternatively, you can use `tox -e mkvenv` (without `-pypi`) to symlink your
local Qt install instead of installing PyQt in the virtualenv. However, unless
2017-09-19 07:57:49 +02:00
you have a new QtWebKit or QtWebEngine available, qutebrowser will not work. It
also typically means you'll be using an older release of QtWebEngine.
2016-09-08 18:50:53 +02:00
2017-12-04 06:45:47 +01:00
On Windows, run `set PYTHON=C:\path\to\python.exe` (CMD) or ``$Env:PYTHON =
"..."` (Powershell) first.
2016-09-08 18:50:53 +02:00
2017-11-16 08:52:28 +01:00
Creating a wrapper script
~~~~~~~~~~~~~~~~~~~~~~~~~
Running `tox` does not install a system-wide `qutebrowser` script. You can
2018-04-05 17:22:38 +02:00
launch qutebrowser by doing:
----
.venv/bin/python3 -m qutebrowser
----
2017-11-16 08:52:28 +01:00
You can create a simple wrapper script to start qutebrowser somewhere in your
`$PATH` (e.g. `/usr/local/bin/qutebrowser` or `~/bin/qutebrowser`):
----
#!/bin/bash
~/path/to/qutebrowser/.venv/bin/python3 -m qutebrowser "$@"
----
2017-10-15 12:25:57 +02:00
Building the docs
~~~~~~~~~~~~~~~~~
To build the documentation, install `asciidoc` (note that LaTeX which comes as
optional/recommended dependency with some distributions is not required).
Then, run:
----
$ python3 scripts/asciidoc2html.py
----
2015-07-17 06:55:03 +02:00
Updating
~~~~~~~~
2015-03-26 19:12:52 +01:00
When you updated your local copy of the code (e.g. by pulling the git repo, or
extracting a new version), the virtualenv should automatically use the updated
code. However, if dependencies got added, this won't be reflected in the
virtualenv. Thus it's recommended to run the following command to recreate the
virtualenv:
----
2017-05-30 15:32:29 +02:00
$ tox -r -e mkvenv-pypi
2015-03-26 19:12:52 +01:00
----