CentOS6 安装 aria2

时间:2022-04-03 19:16:59

CentOS6 安装 aria2

https://www.jianshu.com/p/31ea7aba5524

http://blog.51cto.com/skypegnu1/1637168

1、先安装 RepoForge Repos  http://repoforge.org/use/

2、yum -y install aria2

wget http://repository.it4i.cz/mirrors/repoforge/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
yum -y install aria2

安装方法

yum install -y clang
wget https://copr.fedoraproject.org/coprs/rhscl/devtoolset-3/repo/epel-6/rhscl-devtoolset-3-epel-6.repo -O /etc/yum.repos.d/rhscl-devtoolset-3-epel-6.repo
yum install -y devtoolset-3-gcc devtoolset-3-gcc-c++ devtoolset-3-binutils devtoolset-3-gcc-gfortran
 #启用SCL环境中新版本GCC
scl enable devtoolset-3 bash

wget https://github.com/aria2/aria2/releases/download/release-1.34.0/aria2-1.34.0.tar.gz
tar xzvf aria2-1.34.0.tar.gz
cd aria2-1.34.0
./configure
make
make install

./configure \
    --prefix=/usr/local/aria2 \
    --enable-FEATURE \
    --enable-threads=posix \
    --with-tcmalloc 
make && make install

aria2c --version