Download Torrents from the Command Line in Ubuntu

let’s talk about the process to download torrents from the command line in ubuntu. For this, you need to have good CLI-based torrent client. We are using transmission-cli client for this tutorial because it  is the easiest to use.


To install transmission-cli, type the following command:

sudo apt install transmission-cli


transmission-cli http://releases.ubuntu.com/16.10/ubuntu-16.10-desktop-amd64.iso.torrent -w ~/Downloads

Magnet Links

transmission-cli magnet:?xt=urn:btih:e249fe4dc957be4b4ce3ecaac280fdf1c71bc5bb&dn=ubuntu-mate-16.10-desktop-amd64.iso -w ~/Downloads

Torrent Files

Transmission-cli can be downloaded by adding a torrent file.
For example:
wget http://releases.ubuntu.com/16.10/ubuntu-16.10-desktop-amd64.iso.torrent.

To download with a torrent file:

transmission-cli ubuntu-16.10-desktop-amd64.iso.torrent -w ~/Downloads

Meanwhile Transmission client often doesn’t save setting which means that you should specify the peer blocklists each time before use. To get rid of this issues, do this:

transmission-cli http://releases.ubuntu.com/16.10/ubuntu-16.10-desktop-amd64.iso.torrent -w ~/Downloads -b http:/

READ THIS ALSO  Display Your IP Address in System Tray in Ubuntu