**************Moved to Linux Tutorial Section********************
Update I may create a script for Zypper to automate stuff :D
UBUNTU DIRECTIONS
So many of you who use linux probably know that the apt-get command to grab things is way way slower than your internet connection well heres the solution to slow serial downloading.. PARRELLELIZE it with Apt-fast.
ALL CREDIT TO THE DEV OF THE SCRIPT HERE and below
According to the git
apt-fast is a shellscript wrapper for apt-get and aptitude that can drastically improve apt download times by downloading packages in parallel, with multiple connections per package.
We need to grab aria2c first
sudo apt-get install aria
Now just execute all of this for Ubuntu 14.04 and later versions
sudo add-apt-repository ppa:saiarcot895/myppa
sudo apt-get update -qq
sudo apt-get -y install apt-fast
I like to silence apt-get update because its annoying to watch all of that and it takes up valuable terminal space
I suggest at least 8 connections as it provides the best connection speed.. going over 16 leads to diminishing returns
Please thank Matt Parnell at his git for his wonderful script.. anyways this should speed up your downloads
GIT HUB REPO
Apt-Fast by Matt Parnell
** OPENSUSE DIRECTIONS 12.3-13.2 **
Confirmed by one user on tumbleweed.. See test thread (I needz testerz)**
Warning This has never been attempted to my knwledge.. it is somewhat working for me.. I need testers... and maybe someone who has good knwledge of bash scripting so I can put together a script... PM me if you have issues with this on opensuse...Considering there maybe alot of unique issues.. All code as follows was written here after my extensive testing So the idea came about because I wondered what if I could make zypper use aria2c.. so I looked through documentation and zypper supports exporting its package retrieval list (YES!)... so hey why not see if I can get something working out of just random chance.. Idea met shear willpower = awesomeness below
SO I stand corrected by @thirdmortal.. apparently somebody did make a guide but I have no idea how he found it because I did not ever see it so this was purely my own experimentation.. regardless I guess it solidifies the fact that his isnt a placebo haha
For zypper on opensuse its a little different but zypper doesn't need the script as it natively supports aria2c and alternative download managers such as axel (legacy) according to what I read on its documentation... this one is for aria2c since it supports multiple sources for downloading and not just concurrent connections. I really admit I did not think it was possible but after looking at the apt-fast script and seeing what zypper could do.. I could see that it might be possible doing the following.
sudo zypper in aria2
sudo nano /etc/bash.bashrc
***at the bottom add the following***
###ARIA2C Support -- This if for organization####
export ZYPP_ARIA2C=1
Save and exit
The Idea here is to mimick apt-fast's script way of doing this by telling libzypp that we need to use aria2c as our download manager (or at least in my theory this is what was needed and it worked)
Now there is one little coinkydink.. always has to be a problem in linux damn it... I noticed zypper will use aria2 for downloading when su because I wanted to see if it would work there and the irony was, it did but not when using sudo as a normal user, well I got to the route of the problem after searching a bit on what I had to do to make a param stick for sudo.. Edit the bash rc conf var into sudoers.. the environment variable was removed/non-existant when using sudo so we need to edit our sudoers file.. Go ahead and do the following
sudo nano /etc/sudoers
Look for this line of code... (best done in gedit) not nano but nano is sufficient)
Defaults env_keep = "LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS XDG_SESSION_COOKIE"
Replace with (Add ZYPP_ARIA2C to the end because we have to pass in the variable/support we added in the bash otherwise the sudo command will overlook it)
Defaults env_keep = "LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS XDG_SESSION_COOKIE ZYPP_ARIA2C"
Thats it now save and restart the computer...
Possible Problem Aria2c isnt keeping the concurrent max connection setting between instances of zypper (Darn it) Needs way to set in conf
BUG Well shoot I cant see download progress.. I reported the bug to the aria 2 and zypper devs... They are working on it... but who needs those indications anyways...
ARCH WIP
If arch can do it.. Pm me I'll merge it here and give credit where due