2014-11-26 20:56:08 +01:00
|
|
|
Installing qutebrowser
|
|
|
|
======================
|
|
|
|
|
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
|
|
|
|
|
|
|
qutebrowser should run on these systems:
|
|
|
|
|
|
|
|
* Debian jessie or newer
|
|
|
|
* Ubuntu Trusty (14.04 LTS) or newer
|
2015-10-02 08:02:32 +02:00
|
|
|
* Any other distribution based on these (e.g. Linux Mint 17+)
|
2014-11-13 07:47:45 +01:00
|
|
|
|
2015-07-17 06:57:48 +02:00
|
|
|
Unfortunately there is no Debian package yet, but installing qutebrowser is
|
|
|
|
still relatively easy! If you want to help packaging it for Debian, please
|
|
|
|
https://github.com/The-Compiler/qutebrowser/issues/582[get in touch]!
|
|
|
|
|
2014-11-13 07:47:45 +01:00
|
|
|
Install the dependencies via apt-get:
|
|
|
|
|
2015-05-04 13:37:07 +02:00
|
|
|
[NOTE]
|
|
|
|
==========================
|
|
|
|
On Debian, it's recommended to install the Qt packages from the
|
|
|
|
https://wiki.debian.org/DebianExperimental[experimental] repository as those
|
|
|
|
are a much newer version of Qt which is more stable.
|
|
|
|
|
|
|
|
Add the following line to your `/etc/apt/sources.list`:
|
|
|
|
|
|
|
|
----
|
|
|
|
deb http://ftp.debian.org/debian experimental main
|
|
|
|
----
|
|
|
|
|
|
|
|
Then install the packages like this:
|
|
|
|
|
|
|
|
----
|
|
|
|
# apt-get update
|
2015-06-29 22:25:15 +02:00
|
|
|
# apt-get install -t experimental python3-pyqt5 python3-pyqt5.qtwebkit python3-sip
|
2015-05-04 13:37:07 +02:00
|
|
|
# apt-get install python-tox
|
|
|
|
----
|
|
|
|
|
|
|
|
It's also recommended to pin those packages to receive updates by creating a
|
|
|
|
file `/etc/apt/preferences.d/qutebrowser` with the following contents:
|
|
|
|
|
|
|
|
----
|
|
|
|
Package: python3-pyqt5* libqt5*
|
|
|
|
Pin: release a=experimental
|
|
|
|
Pin-Priority: 800
|
|
|
|
----
|
|
|
|
==========================
|
|
|
|
|
|
|
|
For distributions other than Debian or if you prefer to not use the
|
|
|
|
experimental repo:
|
|
|
|
|
2014-11-13 07:47:45 +01:00
|
|
|
----
|
2015-06-29 22:25:15 +02:00
|
|
|
# apt-get install python3-pyqt5 python3-pyqt5.qtwebkit python-tox python3-sip
|
2014-11-13 07:47:45 +01:00
|
|
|
----
|
|
|
|
|
|
|
|
To generate the documentation for the `:help` command, when using the git
|
|
|
|
repository (rather than a release):
|
|
|
|
|
|
|
|
----
|
2015-09-30 15:28:18 +02:00
|
|
|
# apt-get install asciidoc source-highlight
|
2015-03-26 19:12:52 +01:00
|
|
|
$ python3 scripts/asciidoc2html.py
|
2014-11-13 07:47:45 +01:00
|
|
|
----
|
|
|
|
|
2015-07-17 06:55:03 +02:00
|
|
|
Then <<tox,install qutebrowser via tox>>.
|
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
|
|
|
|
2015-07-17 06:51:29 +02:00
|
|
|
qutebrowser should run on Fedora 22.
|
2015-07-15 12:30:23 +02:00
|
|
|
|
2015-07-17 06:57:48 +02:00
|
|
|
Unfortunately there is no Fedora package yet, but installing qutebrowser is
|
|
|
|
still relatively easy! If you want to help packaging it for Fedora, please
|
|
|
|
mailto:mail@qutebrowser.org[get in touch]!
|
|
|
|
|
2015-07-15 12:30:23 +02:00
|
|
|
Install the dependencies via dnf:
|
|
|
|
|
|
|
|
----
|
|
|
|
# dnf update
|
|
|
|
# dnf install python3-qt5 python-tox python3-sip
|
|
|
|
----
|
|
|
|
|
|
|
|
To generate the documentation for the `:help` command, when using the git
|
|
|
|
repository (rather than a release):
|
|
|
|
|
|
|
|
----
|
2015-09-30 15:28:18 +02:00
|
|
|
# dnf install asciidoc source-highlight
|
2015-07-15 12:30:23 +02:00
|
|
|
$ python3 scripts/asciidoc2html.py
|
|
|
|
----
|
|
|
|
|
2015-07-17 06:55:03 +02:00
|
|
|
Then <<tox,install qutebrowser via tox>>.
|
2015-03-26 19:12:52 +01:00
|
|
|
|
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
|
|
|
|
2014-12-14 18:35:50 +01:00
|
|
|
There are two Archlinux packages available in the AUR:
|
|
|
|
https://aur.archlinux.org/packages/qutebrowser/[qutebrowser] and
|
|
|
|
https://aur.archlinux.org/packages/qutebrowser-git/[qutebrowser-git].
|
2014-11-13 07:47:45 +01:00
|
|
|
|
2015-05-11 22:23:03 +02:00
|
|
|
You can install them (and the needed pypeg2 dependency) like this:
|
2014-11-13 07:47:45 +01:00
|
|
|
|
|
|
|
----
|
2015-05-11 22:23:03 +02:00
|
|
|
$ wget https://aur.archlinux.org/packages/py/python-pypeg2/python-pypeg2.tar.gz
|
|
|
|
$ tar xzf python-pypeg2.tar.gz
|
|
|
|
$ cd python-pypeg2
|
|
|
|
$ makepkg -si
|
|
|
|
$ cd ..
|
|
|
|
$ rm -r python-pypeg2 python-pypeg2.tar.gz
|
|
|
|
|
|
|
|
$ wget https://aur.archlinux.org/packages/qu/qutebrowser/qutebrowser.tar.gz
|
|
|
|
$ tar xzf qutebrowser.tar.gz
|
2014-11-13 07:47:45 +01:00
|
|
|
$ cd qutebrowser
|
|
|
|
$ makepkg -si
|
2015-05-11 22:23:03 +02:00
|
|
|
$ cd ..
|
|
|
|
$ rm -r qutebrowser qutebrowser.tar.gz
|
2014-11-13 07:47:45 +01:00
|
|
|
----
|
|
|
|
|
|
|
|
or you could use an AUR helper, e.g. `yaourt -S qutebrowser-git`.
|
|
|
|
|
|
|
|
On Gentoo
|
2014-11-26 20:56:08 +01:00
|
|
|
---------
|
2014-11-13 07:47:45 +01:00
|
|
|
|
2015-06-30 22:54:11 +02:00
|
|
|
qutebrowser is available in the main repository and can be installed with:
|
2014-11-13 07:47:45 +01:00
|
|
|
|
|
|
|
----
|
2014-11-30 17:20:47 +01:00
|
|
|
# emerge -av qutebrowser
|
2014-11-13 07:47:45 +01:00
|
|
|
----
|
|
|
|
|
2015-06-30 22:54:11 +02:00
|
|
|
Make sure you have `python3_4` in your `PYTHON_TARGETS`
|
|
|
|
(`/etc/portage/make.conf`) and rebuild your system (`emerge -uDNav @world`) if
|
|
|
|
necessary.
|
|
|
|
|
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
|
|
|
|
----
|
|
|
|
|
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
|
|
|
|
----
|
|
|
|
|
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
|
|
|
|
2014-12-16 06:20:20 +01:00
|
|
|
You can either use one of the
|
|
|
|
https://github.com/The-Compiler/qutebrowser/releases[prebuilt standalone
|
|
|
|
packages or MSI installers], or install manually:
|
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).
|
2014-11-13 07:47:45 +01:00
|
|
|
* Use the installer from
|
|
|
|
http://www.riverbankcomputing.com/software/pyqt/download5[Riverbank computing]
|
|
|
|
to get Qt and PyQt5.
|
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
|
|
|
|
2014-11-13 07:47:45 +01:00
|
|
|
On OS X
|
2014-11-26 20:56:08 +01:00
|
|
|
-------
|
2014-11-13 07:47:45 +01:00
|
|
|
|
2014-12-19 19:37:19 +01:00
|
|
|
To install qutebrowser on OS X, you'll want a package manager, e.g.
|
|
|
|
http://brew.sh/[Homebrew] or https://www.macports.org/[MacPorts]. Also make
|
|
|
|
sure, you have https://itunes.apple.com/en/app/xcode/id497799835[XCode]
|
|
|
|
installed to compile PyQt5 in a later step.
|
2014-12-18 00:00:59 +01:00
|
|
|
|
|
|
|
----
|
|
|
|
$ brew install python3 pyqt5
|
|
|
|
$ pip3.4 install qutebrowser
|
|
|
|
----
|
|
|
|
|
2014-12-19 19:37:19 +01:00
|
|
|
if you are using Homebrew. For MacPorts, run:
|
|
|
|
|
|
|
|
----
|
|
|
|
$ sudo port install python34 py34-jinja2 asciidoc py34-pygments py34-pyqt5
|
|
|
|
$ sudo pip3.4 install qutebrowser
|
|
|
|
----
|
|
|
|
|
2014-12-18 00:00:59 +01:00
|
|
|
The preferences for qutebrowser are stored in
|
|
|
|
`~/Library/Preferences/qutebrowser`, the application data is stored in
|
|
|
|
`~/Library/Application Support/qutebrowser`.
|
2014-11-13 07:47:45 +01:00
|
|
|
|
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
|
|
|
|
-------------------------------
|
|
|
|
|
|
|
|
Run tox like this to set up a
|
|
|
|
https://docs.python.org/3/library/venv.html[virtual environment]:
|
|
|
|
|
|
|
|
----
|
|
|
|
$ tox -e mkvenv
|
|
|
|
----
|
|
|
|
|
|
|
|
This installs all needed Python dependencies in a `.venv` subfolder. The
|
|
|
|
system-wide Qt5/PyQt5 installations are symlinked into the virtual environment.
|
|
|
|
|
|
|
|
You can then 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 "$@"
|
|
|
|
----
|
|
|
|
|
|
|
|
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:
|
|
|
|
|
|
|
|
----
|
|
|
|
$ tox -r -e mkvenv
|
|
|
|
----
|