After setting up my server, I wanted to use it as a torrent box. The version of rtorrent in the Debian stable repositories is 0.8.6, which is unfortunate as support for magnet links was introduced in 0.8.7.
To remedy this, I decided to build the current stable version of rtorrent, 0.8.9. At the same time—seeing as I was getting my hands dirty anyway—I thought I’d patch in colour support.
This is a straightforward two-step process. First, build the current version of libtorrent, 0.12.9:
1 2 3 4 5
Once libtorrent is successfully built and installed, you can begin the rtorrent build:
1 2 3
Then, if you want colour support, you need the patch. I used the version in the AUR, but you can also grab a copy from a paste site:
1 2 3
The patch should apply cleanly. Then specify where libtorrent is installed to ensure that it is linked during the rtorrent build:
1 2 3
Once again, this should compile cleanly and you will now have rtorrent with colour and magnet link support installed in /usr/local/bin/rtorrent.