Configure Aria2 Seed Ratio Limit for Torrents Ubuntu
This guide explains how to configure the aria2 download utility on Ubuntu to stop seeding torrents once a specific ratio is reached. You will learn how to set the seed ratio limit using command-line arguments or the configuration file to manage bandwidth usage effectively.
Install Aria2 on Ubuntu
Before configuring settings, ensure aria2 is installed on your system. Open your terminal and run the following commands to update your package list and install the software:
sudo apt update
sudo apt install aria2Set Seed Ratio via Command Line
You can define the seed ratio for a specific session directly when
starting the download. The --seed-ratio option determines
when seeding stops based on the upload-to-download ratio. For example,
to stop seeding after uploading an amount equal to the download size
(1.0 ratio), use:
aria2c --seed-ratio=1.0 file.torrentSetting the value to 0.0 disables seeding entirely after
the download completes.
Set Seed Ratio in Configuration File
For a permanent setting across all torrent sessions, modify the aria2
configuration file. Open the file located at
~/.aria2/aria2.conf using a text editor:
nano ~/.aria2/aria2.confAdd or modify the following line to set your desired ratio:
seed-ratio=1.0
Save the file and exit. Any new torrent tasks started by aria2 will now adhere to this limit automatically.
Verify the Settings
To confirm that the ratio limit is active, check the aria2 console
output during a torrent session. Once the upload ratio meets your
specified limit, aria2 will stop seeding and terminate the task. You can
also view active settings by running aria2c with the --help
flag and searching for seed-ratio options.