You are not logged in.

#1 2008-09-11 11:18:06

idleness
Member
Registered: 2008-09-11
Posts: 2

can pacman use with socks proxy?

In my LAN, a computer is made to be a socks host(use ccproxy under Windows)。 I surf the net as a socks client.
Today I want to install Archlinux,but after basic installion through core.iso I cannot use pacman. Because Idon't know how to make pacman downloading through the  SOCKS proxy.:(
Is there any way? Thx

Offline

#2 2008-09-11 15:55:41

Garns
Member
Registered: 2008-05-28
Posts: 239

Re: can pacman use with socks proxy?

You can configure pacman to use an external downloader. I'm pretty sure you can configure curl to use a SOCKS proxy. Take a look at /etc/pacman.conf there are to outcommented lines there XferCommand=... , that should get you started. You could take a look at man pacman.conf as well.

Offline

#3 2008-09-12 09:25:01

idleness
Member
Registered: 2008-09-11
Posts: 2

Re: can pacman use with socks proxy?

I find " tsocks" in the extra repo.It can help me.After arrangement of tsocks,use "tsocks pacman -Syu".It Works!

Offline

#4 2009-12-10 14:27:06

carlesso
Member
From: Romano d'Ezzelino (VI) - Italy
Registered: 2009-12-10
Posts: 7
Website

Re: can pacman use with socks proxy?

tsocks.conf use to be in /etc/tsocks.conf, but actually is not necessary.

While having a socks proxy, let's suppose created by ssh -D 1234 user@remotehost, it is sufficient to have in your /etc/pacman.conf

XferCommand = /usr/bin/curl --socks5 localhost:1234 %u > %o

as suggested by Garns.

Offline

Board footer

Powered by FluxBB