How to Install aria2 on Linux Using Static Builds
aria2 is a lightweight, multi-protocol, and multi-source command-line download utility. It supports HTTP/HTTPS, FTP, SFTP, BitTorrent, and Metalink. aria2 can be controlled via built-in JSON-RPC and XML-RPC interfaces.
Compiling aria2 from official source code requires numerous dependencies, making installation cumbersome. However, pre-compiled static versions of aria2 are available on GitHub, eliminating dependency issues and simplifying the installation process.

Download Pre-compiled Static aria2
Download the latest version of aria2 based on your system architecture from the following link: https://github.com/q3aql/aria2-static-builds/releases
Install aria2
# Extract the archive
tar jxvf aria2-1.34.0-linux-gnu-[arch]-build1.tar.bz2
# Enter the directory
cd aria2-1.34.0-linux-gnu-[arch]-build1
# Install
make install
After installation, you can check the current aria2 version using the aria2c -v command.
Summary
Using this method allows you to easily install the latest version of aria2 without needing to set up a large number of dependency environments. For those who prefer automation, you can also use the ccaa script provided by xiaoz: One-Click Install Caddy + Aria2 + AriaNg for Offline Downloads.