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 =
    #ftp_proxy =
    # 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_proxy =
    ftp_proxy =

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

    use_proxy = on

Give /tmp more room

Sometimes when I do an update, or build an AUR install with yaourt, I get a “no space left on device” error.

I can temporarily increase the size of /tmp with:

sudo mount -o remount,exec,suid,size=2G,noatime /tmp

That will set /tmp to 2 Gb

Or, for a more long term solution, set the yaourt temporary directory to another location. For example, the following steps set the TMPDIR to the temp directory in my home directory.

$ cd ~
$ mkdir temp
$ sudo nano /etc/yaourtrc

Edit the line



TMPDIR="/home/<my user name>/temp"