Commands.page Logo

aria2c Flag to Ignore File Size Check Ubuntu

This article provides a direct solution for Ubuntu users needing to bypass file size validation when using the aria2 download utility. It identifies the specific command-line flag required to skip these checks and offers clear usage examples to ensure successful downloads without interruption.

The Required Flag

The flag that allows aria2 to download a file without performing a conditional check on the file size is --conditional-get=false. By default, aria2 sends a HEAD request to the server to verify if the remote file is newer or has changed size compared to the local file. Setting this flag to false disables that validation step.

How to Use the Flag

To use this option, append the flag to your standard aria2c command in the Ubuntu terminal. The basic syntax looks like this:

aria2c --conditional-get=false [URL]

Replace [URL] with the actual link to the file you wish to download. This command instructs aria2 to proceed with the download immediately without verifying the remote file’s metadata or size against any existing local file.

Installation on Ubuntu

If you do not have aria2 installed on your Ubuntu system, you can install it using the APT package manager. Run the following command to install the utility before attempting the download:

sudo apt install aria2

Once installed, you can apply the --conditional-get=false flag to bypass size checks for any download task.