aria2.sh | Aria2 one-click installation management script | Stream Processing library
kandi X-RAY | aria2.sh Summary
kandi X-RAY | aria2.sh Summary
Aria2 one-click installation management script enhanced version
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of aria2.sh
aria2.sh Key Features
aria2.sh Examples and Code Snippets
Community Discussions
Trending Discussions on aria2.sh
QUESTION
TLDR:
XferCommand = echo Downloading %u ... && /usr/bin/aria2c --conf-path=/etc/pacman-aria2.conf %u
in pacman.conf outputs
Downloading https://mirror.23media.com/manjaro/stable/core/x86_64/core.db ... && /usr/bin/aria2c --conf-path=/etc/pacman-aria2.conf https://mirror.23media.com/manjaro/stable/core/x86_64/core.db
and the second aria2 command is never executed - pacman.conf and pacman-aria2.conf at the bottom, long version below the TLDR
Introduction:
What I'm trying to achieve is using an external downloader with pacman that states what its currently downloading without filling the terminal output with unneccesary info.
Because of strange downloading speed problems with pacman I tried to use what the wiki recommended: Using the XferCommand in /etc/pacman.conf to use aria2 as a downloader. Since the wiki linked to this (https://bbs.archlinux.org/viewtopic.php?id=192072) article I used the following command in /etc/pacman.conf to use aria2
XferCommand = echo Downloading %u ... && /usr/bin/aria2c --conf-path=/etc/pacman-aria2.conf %u
you can find the full pacman.conf at the bottom as well as the pacman-aria2.conf.
Executed in the terminal (and %u changed to something else) this command works. Sadly when executed in pacman.conf the echo just prints out the whole line, including the "&&" and so on. Full output of pacman -Syy
is
ANSWER
Answered 2020-Mar-25 at 23:50As per https://git.archlinux.org/pacman.git/commit/?id=808a4f15ce82d2ed7eeb06de73d0f313620558ee pacman no longer invokes the XferCommand via a shell, so shell syntax does not work.
You were on the right track with your idea to use a separate script:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install aria2.sh
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page