Skip to content

Instantly share code, notes, and snippets.

@wongsyrone
Created October 24, 2019 07:44
Show Gist options
  • Save wongsyrone/bea7ba5665182c7cd0df2b00360f8a67 to your computer and use it in GitHub Desktop.
Save wongsyrone/bea7ba5665182c7cd0df2b00360f8a67 to your computer and use it in GitHub Desktop.
pacman show download URL
#!/bin/sh
# You could also use a script as your XferCommand
# in pacman.conf: XferCommand = /usr/local/bin/pacman-downloadhelper.sh %o %u
# usage: pacman-downloadhelper %o %u
outfile=$1
url=$2
# print debug output for the xfercommand
set -x
# /usr/bin/curl -L -C - -f -o "$outfile" "$url"
/usr/bin/curl -x 192.168.8.60:808 -L -C - -f -o "$outfile" "$url"
# /usr/bin/wget --passive-ftp -c -O "$outfile" "$url"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment