How To Install aria2 on CentOS 8

aria2 is High speed download utility with resuming and segmented downloading

Introduction

In this tutorial we learn how to install aria2 on CentOS 8.

What is aria2

aria2 is a download utility with resuming and segmented downloading. Supported protocols are HTTP/HTTPS/FTP/BitTorrent. It also supports Metalink version 3.0. Currently it has following features - HTTP/HTTPS GET support - HTTP Proxy support - HTTP BASIC authentication support - HTTP Proxy authentication support - FTP support(active, passive mode) - FTP through HTTP proxy(GET command or tunneling) - Segmented download - Cookie support - It can run as a daemon process. - BitTorrent protocol support with fast extension. - Selective download in multi-file torrent - Metalink version 3.0 support(HTTP/FTP/BitTorrent). - Limiting download/upload speed

We can use yum or dnf to install aria2 on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install aria2.

Install aria2 on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install aria2 using dnf by running the following command:

sudo dnf -y install aria2

Install aria2 on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install aria2 using yum by running the following command:

sudo yum -y install aria2

How To Uninstall aria2 on CentOS 8

To uninstall only the aria2 package we can use the following command:

sudo dnf remove aria2

aria2 Package Contents on CentOS 8

/usr/bin/aria2c
/usr/lib/.build-id
/usr/lib/.build-id/a2
/usr/lib/.build-id/a2/776abca06a9e7dc2bc4f4195aaff2370183105
/usr/share/doc/aria2
/usr/share/doc/aria2/AUTHORS
/usr/share/doc/aria2/COPYING
/usr/share/doc/aria2/ChangeLog
/usr/share/doc/aria2/README
/usr/share/locale/ar/LC_MESSAGES/aria2.mo
/usr/share/locale/bg/LC_MESSAGES/aria2.mo
/usr/share/locale/bn/LC_MESSAGES/aria2.mo
/usr/share/locale/ca/LC_MESSAGES/aria2.mo
/usr/share/locale/da/LC_MESSAGES/aria2.mo
/usr/share/locale/de/LC_MESSAGES/aria2.mo
/usr/share/locale/el/LC_MESSAGES/aria2.mo
/usr/share/locale/en@boldquot/LC_MESSAGES/aria2.mo
/usr/share/locale/en@quot/LC_MESSAGES/aria2.mo
/usr/share/locale/es/LC_MESSAGES/aria2.mo
/usr/share/locale/fa/LC_MESSAGES/aria2.mo
/usr/share/locale/fi/LC_MESSAGES/aria2.mo
/usr/share/locale/fil/LC_MESSAGES/aria2.mo
/usr/share/locale/fr/LC_MESSAGES/aria2.mo
/usr/share/locale/he/LC_MESSAGES/aria2.mo
/usr/share/locale/hr/LC_MESSAGES/aria2.mo
/usr/share/locale/hu/LC_MESSAGES/aria2.mo
/usr/share/locale/id/LC_MESSAGES/aria2.mo
/usr/share/locale/it/LC_MESSAGES/aria2.mo
/usr/share/locale/ja/LC_MESSAGES/aria2.mo
/usr/share/locale/kk/LC_MESSAGES/aria2.mo
/usr/share/locale/ko/LC_MESSAGES/aria2.mo
/usr/share/locale/ms/LC_MESSAGES/aria2.mo
/usr/share/locale/nb/LC_MESSAGES/aria2.mo
/usr/share/locale/nl/LC_MESSAGES/aria2.mo
/usr/share/locale/nn/LC_MESSAGES/aria2.mo
/usr/share/locale/oc/LC_MESSAGES/aria2.mo
/usr/share/locale/pl/LC_MESSAGES/aria2.mo
/usr/share/locale/pt/LC_MESSAGES/aria2.mo
/usr/share/locale/pt_BR/LC_MESSAGES/aria2.mo
/usr/share/locale/ro/LC_MESSAGES/aria2.mo
/usr/share/locale/ru/LC_MESSAGES/aria2.mo
/usr/share/locale/sk/LC_MESSAGES/aria2.mo
/usr/share/locale/sr/LC_MESSAGES/aria2.mo
/usr/share/locale/sv/LC_MESSAGES/aria2.mo
/usr/share/locale/th/LC_MESSAGES/aria2.mo
/usr/share/locale/tr/LC_MESSAGES/aria2.mo
/usr/share/locale/uk/LC_MESSAGES/aria2.mo
/usr/share/locale/vi/LC_MESSAGES/aria2.mo
/usr/share/locale/zh_CN/LC_MESSAGES/aria2.mo
/usr/share/locale/zh_HK/LC_MESSAGES/aria2.mo
/usr/share/locale/zh_TW/LC_MESSAGES/aria2.mo
/usr/share/man/man1/aria2c.1.gz
/usr/share/man/pt/man1/aria2c.1.gz
/usr/share/man/ru/man1/aria2c.1.gz

References

Summary

In this tutorial we learn how to install aria2 on CentOS 8 using yum and dnf.