Force Pamac to use aria2

Is there any way in Pamac or an alternative to install/upgrade AUR packages using aria2 instead of curl ?

Not with Pamac, no.

There’s not much point as Pamac supports parallel downloads natively.

I really suffer from failing to upgrade and install AUR packages, the process needs to be repeated many times to succeed, and sometimes I download the package manually using UGet (using curl+aria2) which never fails, then put the package in AUR install location and trigger Pamac upgrade process.
curl suffers from low speed and gives up easily the download process and doesn’t play well with some websites, while aria2 is robust and never fails. This happens only with AUR packages while official ones are downloaded fine.

AUR use makepkg for download sources and we can create a custom config file in home (read man), key DLAGENTS

#-- The download utilities that makepkg should use to acquire sources
DLAGENTS=('file::/usr/bin/curl -gqC - -o %o %u'
          'ftp::/usr/bin/curl -gqfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
          'http::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'https::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'rsync::/usr/bin/rsync --no-motd -z %u %o'
          'scp::/usr/bin/scp -C %u %o')
1 Like

Thanks, I changed it to aria2c with customized arguments and it seems to work fine.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.