Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

300.9. ktorrent-26.08.2

BitTorrent client — downloads with search, RSS feeds, IP filtering, bandwidth scheduling, UPnP and a media player

26.08.2-1 · GPL-2.0-or-later AND (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND (LGPL-2.0-only WITH Qt-Commercial-exception-1.0) AND LGPL-2.0-only AND CC0-1.0 · 17.2 SBU · 7.6 MiB, 132 files · 44_apps, 396 of 422 · ports/core/transfer/ktorrent

Homepage: https://apps.kde.org/ktorrent/

KTorrent is KDE’s BitTorrent client. The protocol, the DHT, the trackers and the disk work are libktorrent; KTorrent is the window around it and a set of plugins: torrent search and RSS feeds in a web view, an IP filter, transfer statistics, a bandwidth scheduler, UPnP port mapping, local peer discovery over DNS-SD, a scanner that adds torrents dropped in a folder, a media player for files still downloading, and shutdown when all transfers finish.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtwebengine, qt6-qtmultimedia, qt6-qt5compat, kconfig, kconfigwidgets, kcoreaddons, kcrash, kdbusaddons, kglobalaccel, ki18n, kiconthemes, kio, knotifications, knotifyconfig, kcmutils, kparts, kstatusnotifieritem, kwidgetsaddons, kwindowsystem, kxmlgui, kdoctools, ktextwidgets, kplotting, syndication, kdnssd, kcompletion, libktorrent, boost, taglib, karchive.

Required by (1): kde-gear-core.

Sources: ktorrent-26.08.2.tar.xz (2.2 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install ktorrent'

build.sh:

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D KDE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-D BUILD_TESTING=OFF \
	-D KF_SKIP_PO_PROCESSING=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KF6TextWidgets=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Plotting=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Syndication=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6WebEngineWidgets=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6Core5Compat=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DNSSD=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Completion=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6Multimedia=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6MultimediaWidgets=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_Taglib=ON \
	-D BUILD_WITH_GEOIP=OFF \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Programs: ktmagnetdownloader, ktorrent, ktupnptest.

Libraries: libktcore.so.

Directories: /usr/lib/qt6/plugins/ktorrent_plugins, /usr/share/doc/HTML/en/ktorrent, /usr/share/ktorrent, /usr/share/kxmlgui5/ktorrent, /usr/share/licenses/ktorrent.

The torrent details panel (status, files, peers, trackers, web seeds) is the infowidget plugin, which builds on musl as it is. The shutdown plugin asks the session over D-Bus to log out, suspend or power off (org.kde.LogoutPrompt, org.freedesktop.PowerManagement), which only the Plasma session answers. The configure also looks for KF6ItemViews, for a scripting plugin this release does not have; nothing reads the result, so the lookup is left unpinned.

KTorrent listens for peers on TCP and UDP ports of its own; incoming connections need them opened in the firewall, and UPnP opens them on a router only.