Friday, 6 September 2013

Make pacman works with aria2

Make pacman works with aria2

I want to make an alias for zsh to download packges by aria2 and
installing them by pacman , I don't want to use aria2c by adding
xfercommand to pacman.conf because of 2 things , First my internet
connection's speed is low and I don't want pacman go lock for some hours ,
Second xfercommand doesn't supports mutli link downloads.
First off , I use this command to download or upgrade and update by pacman :
sudo pacman -Sp eclipse > ~/Documents/.install&& sudo aria2c -c -x16 -x16
-m16 -k1M -j10 -i ~/Documents/.install -d /var/cache/pacman/pkg
But I don't know how to make it alias in zsh ?

No comments:

Post a Comment