How to Check Torrent Integrity in aria2?

This article provides a straightforward guide on how to verify the local data integrity of a downloaded torrent using the aria2 command-line utility. You will learn the exact command-line options required to trigger a hash check, how to force a recheck on existing files, and how to automate this process for future downloads.

The Core Command for Torrent Verification

To verify the integrity of a locally downloaded torrent against its original metadata, you use the --check-integrity option. When this option is set to true, aria2 hashes the local files and compares them with the piece hashes found in the .torrent file.

The standard command structure is:

aria2c --check-integrity=true /path/to/file.torrent

How aria2 Handles Integrity Checks

To optimize or customize the verification process, you can pair the integrity check with these additional flags:

Complete Command Example

To verify a completed torrent stored in a specific downloads folder and exit immediately without seeding, run:

aria2c --check-integrity=true -d /home/user/downloads /path/to/file.torrent --seed-time=0