130

Yesterday one of my friends asked me if there is some torrent client that runs on the command-line.

I had no answer for him, but I think that you have some.

Zanna
  • 70,465
Wolfy
  • 7,920

9 Answers9

90

Deluge is controllable by gui, web, and console.

To setup remote access to a deluge server see the thinclient guide.

deluge-console

deluge-console

deluge-gtk

standard deluge gtk ui

deluge-web

deluge web ui

djeikyb
  • 30,245
72

I think the default torrent client transmission itself has a cli interface and can be installed with

sudo apt-get install transmission-cli

sagarchalise
  • 23,988
  • 2
    Another vote for transmission. In daemon mode, you can control an already-running instance of transmission to add/removetorrents, check on status, etc. –  Mar 11 '11 at 14:11
  • 4
    Update via https://github.com/transmission/transmission: Prior to development of transmission-remote, the standalone client transmission-cli was created. Limited to a single torrent at a time, transmission-cli is deprecated and exists primarily to support older hardware dependent upon it. In almost all instances, transmission-remote should be used instead. – Jose Alban Nov 02 '19 at 16:48
  • this is deprecated – chovy Jul 19 '20 at 21:41
38

I use rtorrent on a headless server to serve Debian and Ubuntu ISOs, works quite well and can saturate my network link. Dependencies and memory usage are minimal.

  • I've tried it and am generally quite happy with it working, but it sometimes crashes (something about a corrupted doubly linked list appears), which makes it unsuitable to be left alone long-term (at least for me). Also, if the server is not beefy (i.e. the old Raspberry Pi I run it on), the UI can lag, since it seems to share a basic operation thread with the UI controls for some things. – Daniel Gray Jan 31 '20 at 17:01
28

aria2 (sf.net) is a multi-protocol & multi-source, cross platform download utility. The supported protocols are HTTP(S), FTP, BitTorrent, Metalink. It can download a file from multiple sources/protocols and tries to utilize your maximum download bandwidth.

http://sourceforge.net/apps/trac/aria2/wiki/UsageExample#BitTorrentDownload

Example command-line installation and usage:

$ sudo apt-get install -y aria2
$ aria2c http://gtf.org/garzik/bitcoin/bootstrap.dat.torrent
type
  • 3,237
11

Yes. I use ctorrent as my primary client. Usually from within tmux.

sudo apt-get install ctorrent
johnsyweb
  • 648
  • slight note to this answer: ctorrent can't parse metainfo of huge torrents. I'm trying to move a terrabyte with it right now. no chance. – GottZ Jan 11 '24 at 11:53
7

WebTorrent

WebTorrent is a streaming torrent client for node.js and the browser. It also has a command line app.

Installation

npm install webtorrent -g
webtorrent --help

You need to have node.js and npm installed for using webtorrent.

To download a torrent:

webtorrent magnet_uri
Vishnu Ks
  • 221
6

I was looking for a torrent client for ubuntu server a few weeks ago.I didn't found anything interesting but µTorrent server.It runs a web interface which can be accessible from serveraddress:8000/gui.

Here is a screenshot of the web interface:

enter image description here

It can be downloaded from http://www.utorrent.com/downloads/linux

Configuration manual is included in the downloaded package (You wont install it.Only configure it and run the executable when you want to use it.).Be aware that this is a alpha version and it may have some problems.They say this version is only for 32bit linux but I used it on my 64bit server and I didn't experienced any problems.

Another option is rtorrent, a CLI application.It's not user-friendly and I had problems with different torrent files.You can install it from repositories:

sudo apt-get install rtorrent
Pedram
  • 5,711
  • 2
    rtorrent is well documented and if follow manual carefully it is easy to use. It is very lightweight with minimal dependencies. It can be extensively configured. And does not require to have web server what was very important for me – Osis Mar 11 '11 at 09:07
  • I only said it's not user friendly.Many CLI apps are easy to use without following manuals.Besides I couldn't download with different torrent file from different providers (piratebay for example).µTorrent worked better. – Pedram Mar 11 '11 at 09:22
3

Or you could run install deluge torrent, run it as a daemon, and access it through Web Interface or remote apps (eg. Transdroid on Android).

MordSith
  • 117
3

There are some torrent clients that you can run on a headless server. I dunno if you can control them via console, but the following clients are controllable via web interface:

  • torrentflux
  • deluge

Torrentflux is available in the Ubuntu repositories, but I think in a quite outdated version now.

Deluge can be obtained from the getdeb repositories. It also has a GUI client software that you could run from your desktop and connect to the "headless client" running on your server to control it.

Oliver
  • 51