Static Compilation Installation of aria2 on Linux

Publish: 2019-01-25 | Modify: 2019-01-25

aria2 is a lightweight command-line download utility that supports multiple protocols and sources. It supports HTTP/HTTPS, FTP, SFTP, BitTorrent, and Metalink. aria2 can be operated using its built-in JSON-RPC and XML-RPC interfaces.

Compiling aria2 from the official source code requires a lot of dependencies and can be cumbersome to install. Fortunately, there are pre-compiled static builds of aria2 available on GitHub, which simplify the installation process and eliminate the need for various dependencies.

Download

Download the pre-compiled aria2

Download the latest version of aria2 based on your operating system from the following link: https://github.com/q3aql/aria2-static-builds/releases

Install aria2

# Extract the files
tar jxvf aria2-1.34.0-linux-gnu-[arch]-build1.tar.bz2
# Navigate to the directory
cd aria2-1.34.0-linux-gnu-[arch]-build1
# Install aria2
make install

After the installation is complete, you can use the aria2c -v command to check the current version of aria2.

Conclusion

By following the above steps, you can easily install a newer version of aria2 without the need to install numerous dependencies. This method is very convenient. If you prefer a more automated installation process, you can use the ccaa script provided by xiaoz: One-click Installation of Caddy + Aria2 + AriaNg for Offline Downloads


Comments