Re: yum via socks 4/5 proxy

Rohit Damkondwar <[email protected]> Fri, 8 Feb 2013 21:23:57 +0530
Newsgroups gmane.linux.rpm.yum
Message-ID <CAHEEu85OmrJ=8Z3UHEcjoQv1W=7d7cndGHLEbbA_SK6AqFCvdg@mail.gmail.com>
On Tue, Feb 5, 2013 at 9:37 PM, Zdenek Pavlas <[email protected]> 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
> [email protected]
> http://lists.baseurl.org/mailman/listinfo/yum
>



-- 
Rohit S Damkondwar
B.Tech Computer Engineering
CoEP
MyBlog <http://www.rohitsdamkondwar.wordpress.com>

_______________________________________________
Yum mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum