[Yum] yum via socks 4/5 proxy

Rohit Damkondwar genius.rsd at gmail.com
Fri Feb 8 15:53:57 UTC 2013


On Tue, Feb 5, 2013 at 9:37 PM, Zdenek Pavlas <zpavlas at redhat.com> wrote:

> > Can yum be configured to download packages via socks proxy directly?
> > Can yum.conf handle this?
>
> No, it can't, ATM.  yum/config.py:
>
> : proxy = UrlOption(default=False, schemes=('http', 'ftp', 'https'),
> allow_none=True)
>
> Only these proxy schemes are supported.
>
> Yum runs on top of urlgrabber, pycurl, and libcurl.  Since curl 7.21.7
> socks{4,4a,5,5h}:// proxy protocol prefixes are supported, so adding
> support in urlgrabber and yum should be quite easy, but there's some
> glue code involved.  Does the following work?
>
> $ curl http://some-url --proxy socks4://your-proxy
>
$curl http:://www.google.co.in --proxy socks5://mysocks5proxy
This works. socks4 does not work in my case. I need to use socks5 proxy and
the above command works. Can yum use above command to download package
using socks5 proxy ?

>
> _______________________________________________
> Yum mailing list
> Yum at lists.baseurl.org
> http://lists.baseurl.org/mailman/listinfo/yum
>



-- 
Rohit S Damkondwar
B.Tech Computer Engineering
CoEP
MyBlog <http://www.rohitsdamkondwar.wordpress.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.baseurl.org/pipermail/yum/attachments/20130208/065a2926/attachment.html>


More information about the Yum mailing list