Getting pacman to work through proxy with Wget

  1. Configure pacman to use Wget

    Edit pacman.conf

    $ sudo nano /etc/pacman.conf

    Uncomment or add the following line

    XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u

    Save and exit.

  2. Set Wget proxies and set Wget to use proxy

    Edit wgetrc

    sudo nano /etc/wgetrc

    Find the following section in wgetrc regarding proxy settings.

    # You can set the default proxies for Wget to use for http, https, and ftp.
    # They will override the value in the environment.
    #https_proxy = http://proxy.yoyodyne.com:18023/
    #http_proxy = http://proxy.yoyodyne.com:18023/
    #ftp_proxy = http://proxy.yoyodyne.com:18023/
    
    # If you do not want to use proxy at all, set this to off.
    #use_proxy = on
    

    Uncomment and edit the default proxies, or add your own default proxies for Wget. For example,

    https_proxy = http://10.0.2.2:3128
    http_proxy = http://10.0.2.2:3128
    ftp_proxy = http://10.0.2.2:3128
    

    Uncomment, or add the following line to set Wget use_proxy on.

    use_proxy = on

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.