You are not logged in.

#1 2013-05-21 14:05:15

MHALAH152
Member
Registered: 2013-05-11
Posts: 30

[solved]use aria2c for downloader in pacman

hello
I sort my mirrorlist by reflector & now the first three of them are ftp & I don't now how can I use aria2c?
whould you help me?

Last edited by MHALAH152 (2013-05-21 15:07:26)

Offline

#2 2013-05-21 14:08:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved]use aria2c for downloader in pacman

Use the '-p' switch to match only http.

Offline

#3 2013-05-21 14:09:38

MHALAH152
Member
Registered: 2013-05-11
Posts: 30

Re: [solved]use aria2c for downloader in pacman

karol wrote:

Use the '-p' switch to match only http.

but ftp is faster

Offline

#4 2013-05-21 14:12:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved]use aria2c for downloader in pacman

aria2c does seem to support ftp.
How are you using aria2c with pacman?


The question is, how fast does it need to be, how fast is fast enough and does 'even faster' make a difference.
Edit: Unless the difference is huge and http is very slow.

Last edited by karol (2013-05-21 14:13:12)

Offline

#5 2013-05-21 14:16:15

MHALAH152
Member
Registered: 2013-05-11
Posts: 30

Re: [solved]use aria2c for downloader in pacman

I use this code in /etc/pacman.conf

XferCommand = /usr/bin/aria2c --allow-overwrite=true -c --file-allocation=none --log-level=error \ -x16 --max-file-not-found=5 -k1M --no-conf \ -R=true --summary-interval=60 -t5 -d / -o %o %u/

Offline

#6 2013-05-21 14:34:01

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [solved]use aria2c for downloader in pacman

The fastest Arch Linux mirrors where i am can actually max out my 50Mb/s connection.  Are you actually somewhere where this truly makes a difference?  I have heard that in other countries where mirrors aren't as plentiful, it can be a bit slow sometimes.  I am just curious.

Offline

#7 2013-05-21 14:38:02

MHALAH152
Member
Registered: 2013-05-11
Posts: 30

Re: [solved]use aria2c for downloader in pacman

I sort my mirror list by reflector and I think it's correct so plese help me to use aria2c

Offline

#8 2013-05-21 14:45:07

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [solved]use aria2c for downloader in pacman

As mentioned above, I have never had a need to use the non-defaut XferCommand, and only recently have I started using aria2c.  Maybe you should go through the man page and see if there is anything special that needs to be done to support ftp with that mass of options you are using.

Otherwise, you can try powerpill which is made by Xyne.

Offline

#9 2013-05-21 14:50:34

MHALAH152
Member
Registered: 2013-05-11
Posts: 30

Re: [solved]use aria2c for downloader in pacman

I read the man page and I says what I write in pacman.conf

Offline

#10 2013-05-21 14:57:34

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved]use aria2c for downloader in pacman

I've created ftp-only mirrorlist with reflector and used the XferCommand from the wiki https://wiki.archlinux.org/index.php/Im … sing_aria2 w/o a problem.

Offline

#11 2013-05-21 15:07:06

MHALAH152
Member
Registered: 2013-05-11
Posts: 30

Re: [solved]use aria2c for downloader in pacman

thank karol
the problem solved

Offline

#12 2013-05-21 15:38:36

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [solved]use aria2c for downloader in pacman

Wait, what?  How?  What did you do to solve it?  I really don't understand how karol solved this for you.  Can you please explain?

Offline

#13 2013-05-21 15:52:08

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [solved]use aria2c for downloader in pacman

There's not much to explain. Someone who wants to use FTP over HTTP is beyond the help that one can provide here.

http://mywiki.wooledge.org/FtpMustDie
http://daniel.haxx.se/docs/ftp-vs-http.html

We're not actively accepting new FTP mirrors onto the mirror list, and I'd be a happy camper if the ones remaining simply went away.

Last edited by falconindy (2013-05-21 15:52:32)

Offline

#14 2013-05-21 15:59:31

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [solved]use aria2c for downloader in pacman

@falconindy, I certainly understand the issues surrounding FTP, and that HTTP should be used 99.9% of the time. 

But with regard to the thread topic, I fail to understand how it was solved.  Was it a mix of FTP and HTTP that was messing aria2c up?  Or was it a poorly generated mirrorlist? 

I'm not goind to go start using FTP, but it would be nice if the OP would return and bring some closure to the thread.  Maybe it might help some other confused soul who is also "beyond the help that one can provide here". wink

Offline

#15 2013-05-21 16:03:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved]use aria2c for downloader in pacman

I guess OP's XferCommand needs fixing. I removed the last character '/' and I substituted the short flags with the long ones e.g. '-k' -> '--min-split-size=' and it just worked.

Edit: I also used a single line, w/o '\' linebreaks. I think '-R=true' is the culprit. Changing it to '-Rtrue' makes aria2 happy.

Last edited by karol (2013-05-21 16:11:30)

Offline

#16 2013-05-21 16:13:02

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [solved]use aria2c for downloader in pacman

Wiki's commmand:

XferCommand = /usr/bin/aria2c --allow-overwrite=true -c --file-allocation=none --log-level=error -m2 --max-connection-per-server=2 --max-file-not-found=5 --min-split-size=5M --no-conf --remote-time=true --summary-interval=60 -t5 -d / -o %o %u

OP's command:

XferCommand = /usr/bin/aria2c --allow-overwrite=true -c --file-allocation=none --log-level=error -x16 --max-file-not-found=5 -k1M --no-conf -R=true --summary-interval=60 -t5 -d / -o %o %u/

If the OP would have just looked in the wiki then, this whole thread could have been avoided.  I suspect that he/she just copy and pasted it before anyway, which is why I suggested reading the man page to figure out what was actually being opted for.

Offline

#17 2013-05-21 16:15:55

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved]use aria2c for downloader in pacman

Yup, you're right. Good old RTFM works ;P

Also, posting the errors wouldn't hurt e.g. when splitting this into multiple lines I get

warning: config file /etc/pacman.conf, line 24: directive '--log-level' in section 'options' not recognized.

Offline

#18 2013-05-21 16:26:38

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [solved]use aria2c for downloader in pacman

Wow, yeah,, you would think something like that might be obviously significant.... makes you wonder, doesn't it?

Offline

#19 2013-05-22 03:59:25

MHALAH152
Member
Registered: 2013-05-11
Posts: 30

Re: [solved]use aria2c for downloader in pacman

I use the wiki's code and my problem was solved
the problem is my code not FTP mirror

Offline

#20 2013-05-22 08:26:43

MHALAH152
Member
Registered: 2013-05-11
Posts: 30

Re: [solved]use aria2c for downloader in pacman

excuse me is aria use for pacman & yaourt?or just use for pacman?

Offline

#21 2013-05-22 13:05:08

andjeng
Member
From: Indonesia
Registered: 2012-08-30
Posts: 148

Re: [solved]use aria2c for downloader in pacman

MHALAH152 wrote:

excuse me is aria use for pacman & yaourt?or just use for pacman?

just pacman i think. because yaourt use pkgbuild and makepkg. you can use aria2 for yaourt if you edit /etc/makepkg.conf at DLAGENTS.
please correct me if i wrong.


just looking around. wink

Offline

#22 2013-05-22 13:10:40

progandy
Member
Registered: 2012-05-17
Posts: 5,317

Re: [solved]use aria2c for downloader in pacman

yaourt uses pacman to install official packages, so aria2 works with it, too.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#23 2013-05-22 17:53:47

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: [solved]use aria2c for downloader in pacman

Just for the record, powerpill uses aria2c and reflector internally (along with optional rsync and pacserve support). It will download all packages in parallel, instead of downloading each package sequentially as you are currently doing with the Xfercommand. I really don't understand why you wouldn't use it in this case.

And yes, it works with yaourt and any other outer pacman wrapper.

I'm a bit disappointed that it was only mentioned once in this thread and that no one seemed to pay any attention.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB