You are not logged in.
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
Use the '-p' switch to match only http.
Offline
Use the '-p' switch to match only http.
but ftp is faster
Offline
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
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
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
I sort my mirror list by reflector and I think it's correct so plese help me to use aria2c
Offline
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
I read the man page and I says what I write in pacman.conf
Offline
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
thank karol
the problem solved
Offline
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
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
@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". ![]()
Offline
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
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 %uOP'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
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
Wow, yeah,, you would think something like that might be obviously significant.... makes you wonder, doesn't it?
Offline
I use the wiki's code and my problem was solved
the problem is my code not FTP mirror
Offline
excuse me is aria use for pacman & yaourt?or just use for pacman?
Offline
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. ![]()
Offline
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
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 Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline