aria_chk - Linux
Overview
aria_chk is a command-line utility used to check the integrity and validity of aria2c download files. It verifies if the downloaded files’ checksums match the expected values, ensuring the downloads are complete and uncorrupted.
Syntax
aria_chk [options] <torrents> [<files>...]
Options/Flags
- -c, –check-integrity: Verify the file’s data integrity by comparing it with the checksum provided in the torrent file.
- -v, –version: Display version information and exit.
- -V, –verbose: Enable verbose output, logging errors and progress to the console.
- -q, –quiet: Suppress all output except error messages.
- -s, –stats: Display statistics about the torrent and download data.
Examples
Verifying a single file’s integrity:
aria_chk --check-integrity file.torrent file.txt
Verifying multiple files against a torrent file:
aria_chk --check-integrity torrent.torrent file1.txt file2.txt file3.txt
Viewing download statistics:
aria_chk --stats torrent.torrent
Common Issues
Checksum mismatch errors:
The most common error is a checksum mismatch, which indicates corruption during the download process. Retry the download or manually replace the corrupted file.
Missing torrent file:
Ensure the specified torrent file exists and is accessible to aria_chk.
Integration
aria_chk can be used in conjunction with other download management tools, such as aria2c, to automate integrity checking after downloads. It can also be integrated into scripts for automated file verification and repair.
Related Commands
- aria2c: Command-line tool for managing aria2 downloads.
- sha256sum: Compute and verify SHA-256 checksums for files.
- md5sum: Compute and verify MD5 checksums for files.