Package: aria2stub
aria2c-for-wget-curlStubs of wget and curl for aria2c to download large files using Debian alternatives subsystem instead of changing the shell scripts.
aria2c is better when compareed to wget/curl because it tries to utilize your maximum download bandwidth.
Since, changing shell scripts from wget/curl to equivalent aria2c cli takes time, this stub translates the wget/curl command to equivalent aria2c command and executes it.
If not possible to do so, it executes the original command.Instructions for setupInstall aria2cInstall wget and(or) curlWgetCopy original wget to wget-orig$sudocp/usr/bin/wget/usr/bin/wget-origInstall the aria2stub package.$pip3installaria2stubNowwgetcommand runs the stub as default for the current user.(BELOW STEPS ARE OPTIONAL) Make all users execute the stub by default.Move the installed binary(default=/usr/local/bin/) to /usr/bin/.$sudomv/usr/local/bin/wget/usr/bin/wget-stubUse update-alternatives to set default binary.$sudoupdate-alternatives--install/usr/bin/wgetwget/usr/bin/wget-orig30update-alternatives: using /usr/bin/wget-orig to provide /usr/bin/wget (wget) in auto mode$sudoupdate-alternatives--install/usr/bin/wgetwget/usr/bin/wget-stub40update-alternatives: using /usr/bin/wget-stub to provide /usr/bin/wget (wget) in auto modeVerify that wget-stub is default$sudoupdate-alternatives--configwgetThere are 2 choices for the alternative wget (providing /usr/bin/wget).Selection Path Priority Status------------------------------------------------------------* 0 /usr/bin/wget-stub 40 auto mode1 /usr/bin/wget-orig 30 manual mode2 /usr/bin/wget-stub 40 manual modePress <enter> to keep the current choice[*], or type selection number:The setup is ready, try using wget now.CurlCopy original curl to curl-orig$sudocp/usr/bin/curl/usr/bin/curl-origInstall the aria2stub package.$pip3installaria2stubNowcurlcommand runs the stub as default for the current user.(BELOW STEPS ARE OPTIONAL) Make all users to execute the stub by default.Move the installed binary(default=/usr/local/bin/) to /usr/bin/.$sudocp/usr/local/bin/curl/usr/bin/curl-stubUse update-alternatives to set default binary$sudoupdate-alternatives--install/usr/bin/curlcurl/usr/bin/curl-orig30update-alternatives: using /usr/bin/curl-orig to provide /usr/bin/curl (curl) in auto mode$sudoupdate-alternatives--install/usr/bin/curlcurl/usr/bin/curl-stub40update-alternatives: using /usr/bin/curl-stub to provide /usr/bin/curl (curl) in auto modeVerify that curl-stub is default$sudoupdate-alternatives--configcurlThere are 2 choices for the alternative curl (providing /usr/bin/curl).Selection Path Priority Status------------------------------------------------------------* 0 /usr/bin/curl-stub 40 auto mode1 /usr/bin/curl-orig 30 manual mode2 /usr/bin/curl-stub 40 manual modePress <enter> to keep the current choice[*], or type selection number:The setup is ready, try using curl now.NoteIf command cannot be translated to aria2c equivalent, then it falls back to the corresponding program.Use --orig flag to use the original program..curlrc is not supported as of nowTo revert back to using the original command(if followed optional approach), run the following command for wget(similarly for curl):$sudoupdate-alternatives--configwgetCurlonly files are supported for --cookie flagScreenshots