Download Magnet Links on Linux Command Line
作者:XD / 发表: 2024年7月22日 22:37 / 更新: 2024年7月22日 22:38 / 编程笔记 / 阅读量:189
This blog post will introduce how to download magnet links using two command-line tools on Linux: aria2
and transmission-cli
. Both tools are efficient and easy to use.
Downloading Magnet Links with aria2
aria2
is a lightweight multi-protocol and multi-source command-line download utility. It supports HTTP/HTTPS, FTP, SFTP, BitTorrent, and Metalink.
Installing aria2
First, open your terminal and run the following commands to update your package list and install aria2
:
sudo apt update
sudo apt install aria2
Using aria2c
to Download Magnet Links
After the installation is complete, you can use the aria2c
command to download a magnet link. Here is an example command:
aria2c 'magnet:?xt=urn:btih:c0e342ae56775'
Downloading Magnet Links with transmission-cli
transmission-cli
is the command-line version of the BitTorrent client Transmission. It can also be used to download magnet links.
Installing transmission-cli
Similarly, open your terminal and run the following commands to update your package list and install transmission-cli
:
sudo apt update
sudo apt install transmission-cli
Using transmission-cli
to Download Magnet Links
Once the installation is complete, you can use the transmission-cli
command to download a magnet link. Here is an example command:
transmission-cli 'magnet:?xt=urn:btih:c0e342ae56775'